GNOME Bugzilla – Bug 686756
Super+F10 opens the app menu but doesn't close it
Last modified: 2013-04-26 16:03:38 UTC
Pressing Super+F10 opens the app menu, but pressing Super+F10 a second time doesn't close it.
Neither do F10 or Shift+F10 in GTK+ applications :-)
F10 did seem to work that way (to open and to close) in gnome-terminal when I tried yesterday and F10 in general is working that way for me now. I think combo shortcuts are a bit trickier but I don't think it's impossible.
Generally, this has the same issues as bug 682229 (which in turn depends on a patchset from bug 613543). Once that's fixed, it's easy to change Panel.openAppMenu() to toggle it instead.
This may be fixed with bug 688202. It is unfortunate that that fix missed 3.6.2. I only use stable versions.
Created attachment 242582 [details] [review] panel: Change openAppMenu() to a toggle action It makes sense to allow closing the app menu with the same shortcut that is used to open it, so make it a toggle action and allow it TOPBAR_POPUP mode.
Created attachment 242583 [details] [review] PopupMenuManager: Close active menu when another one opens We already do this when navigating between menus via mouse or keynav, but miss cases where a menu is opened by other means, for instance via a keyboard shortcut. Not a big fan of this approach, but couldn't come up with anything better off-hand ...
Review of attachment 242583 [details] [review]: You should probably remove this._changeMenu in this case, too. I actually like this.
Review of attachment 242582 [details] [review]: OK.
Created attachment 242590 [details] [review] PopupMenuManager: Close active menu when another one opens (In reply to comment #7) > You should probably remove this._changeMenu in this case, too. I actually like > this. Not sure I get what you are trying to say - I assume you mean removing the close() call from _changeMenu() (as it's not handled by open-state-changed)?
Review of attachment 242590 [details] [review]: No, I mean removing _changeMenu entirely, as it's a one-liner at this point, but this is fine too.
Attachment 242582 [details] pushed as 60cb1ad - panel: Change openAppMenu() to a toggle action Attachment 242590 [details] pushed as c84dc62 - PopupMenuManager: Close active menu when another one opens