After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698938 - volume: respond to the volume keys when the menu is open
volume: respond to the volume keys when the menu is open
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 698868 699425 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-26 11:03 UTC by Thomas Wood
Modified: 2013-08-21 18:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
volume: respond to the volume keys when the menu is open (2.27 KB, patch)
2013-04-26 11:03 UTC, Thomas Wood
rejected Details | Review
grabHelper: Keep the current keybindingMode if not specified (1008 bytes, patch)
2013-04-26 13:09 UTC, Rui Matos
rejected Details | Review
popupMenu: Allow setting grabHelper params for PopupMenuManager (1.16 KB, patch)
2013-04-26 15:13 UTC, Florian Müllner
committed Details | Review
panel: Add keybinding mode for top bar popups and use it (1.92 KB, patch)
2013-04-26 15:13 UTC, Florian Müllner
committed Details | Review

Description Thomas Wood 2013-04-26 11:03:09 UTC
The volume hardware keys cannot be used with the volume menu is open.
Comment 1 Thomas Wood 2013-04-26 11:03:11 UTC
Created attachment 242547 [details] [review]
volume: respond to the volume keys when the menu is open
Comment 2 Rui Matos 2013-04-26 13:09:07 UTC
Created attachment 242559 [details] [review]
grabHelper: Keep the current keybindingMode if not specified

This allows keybindings to continue to work when shell menus are up.
--

I prefer this more general fix. Hopefully it doesn't break anything...
Comment 3 Rui Matos 2013-04-26 13:10:14 UTC
*** Bug 698868 has been marked as a duplicate of this bug. ***
Comment 4 Florian Müllner 2013-04-26 13:22:35 UTC
Review of attachment 242547 [details] [review]:

I agree with Rui we want a general fix rather than hardcoding some keybindings - we just got rid of the hacks we were doing let's not go back there (also: it doesn't make much sense, but it *is* possible to reassign the volume keys for other actions using the Shortcuts panel).
Comment 5 Thomas Wood 2013-04-26 13:23:19 UTC
Comment on attachment 242547 [details] [review]
volume: respond to the volume keys when the menu is open

A more general approach would appear to be a good idea, although there are some issues with (for example) attempting to use alt-tab when a menu is open. The first patch would also need further work to make sure any customised shortcuts still work.
Comment 6 Florian Müllner 2013-04-26 13:28:40 UTC
Review of attachment 242559 [details] [review]:

No, this is wrong as well. Keybindings like volume and screencasting are ok when a menu is open, others are not. In particular switchers like alt-tab/ctrl-alt-tab are completely broken. In my opinion, the correct approach is to add a different keybinding mode for top bar popups (or possibly different modes for app menu, date menu and status-area-that-will-probably-be-a-single-menu-soon-anyway) and mark appropriate keybindings accordingly in g-s-d.
Comment 7 Florian Müllner 2013-04-26 13:30:40 UTC
(In reply to comment #6)
> (or possibly different modes for app menu, date menu and
> status-area-that-will-probably-be-a-single-menu-soon-anyway)

This with bug 686756 in mind.
Comment 8 Florian Müllner 2013-04-26 15:13:08 UTC
Created attachment 242580 [details] [review]
popupMenu: Allow setting grabHelper params for PopupMenuManager

Currently all keybindings are disabled while some popup menu is open.
However some keybindings may still be useful in some cases, so expose
GrabHelper's modal params parameter to allow specifying a keybinding
mode for particular menus.
Comment 9 Florian Müllner 2013-04-26 15:13:14 UTC
Created attachment 242581 [details] [review]
panel: Add keybinding mode for top bar popups and use it

Allow some keybindings to still work while a top bar menu is open
by assigning it a keybinding mode.
Comment 10 Jasper St. Pierre (not reading bugmail) 2013-04-26 15:18:36 UTC
Review of attachment 242580 [details] [review]:

OK.
Comment 11 Jasper St. Pierre (not reading bugmail) 2013-04-26 15:18:40 UTC
Review of attachment 242581 [details] [review]:

OK.
Comment 12 Florian Müllner 2013-04-26 15:55:45 UTC
Attachment 242580 [details] pushed as 5c40307 - popupMenu: Allow setting grabHelper params for PopupMenuManager
Attachment 242581 [details] pushed as 4a5ff5d - panel: Add keybinding mode for top bar popups and use it
Comment 13 Florian Müllner 2013-05-01 22:17:55 UTC
*** Bug 699425 has been marked as a duplicate of this bug. ***
Comment 14 Thomas Wood 2013-08-21 09:46:21 UTC
This seems to have stopped working again with the new combined system menu. The volume keys don't function when the menu is open or when the overview is active.
Comment 15 Jasper St. Pierre (not reading bugmail) 2013-08-21 12:12:50 UTC
Are you using jhbuild in an existing session? The API for grabbing keys between gnome-shell / gnome-settings-daemon, so they don't work at all.
Comment 16 Thomas Wood 2013-08-21 17:04:04 UTC
This seems to work fine in the latest gnome-ostree image, so it may well have been some other issue to do with key grabbing when I first tested it.
Comment 17 Florian Müllner 2013-08-21 18:21:29 UTC
Likely using incompatible mutter/gnome-settings-daemon versions as suggested by Jasper in comment #15.