GNOME Bugzilla – Bug 313880
Focus grabbed in panel when navigating between main menu and other activators.
Last modified: 2009-07-12 11:30:46 UTC
Please describe the problem: Panel grabs the focus when (using standard metacity global keybindings) a focus is moved to panel, then main menu is selected (using keybard left arrow), popped up (left arrow), closed (esc) and then focus is moved to the first activator on the right of the menu (tab). Standard keybindings are not working. Steps to reproduce: 1. switch_panels <Control><Alt><Tab> (focus is moved to the panel) 2. navigate to "gnome main menu" applet with keyboard left arrow (menu is the first applet in the panel) 3. pop up the main menu (left arrow) 4. close the main menu (esc) 5. press tab to move focus to the next applet/activator in the panel Actual results: The focus is on the applet/activator next to the "main menu" and cannot be moved. Standard metacity keybindings are not working, e.g. switch_panels (<Control><Alt><Tab>) or switch_to_workspace (<Control><Alt><Left>) Expected results: Standard metacity keybindings should work. Does this happen every time? Yes. Other information:
I can see it too. Weird. I don't know why this happens...
*** Bug 344048 has been marked as a duplicate of this bug. ***
I can still duplicate in 2.14.x. What's even more odd is that by choosing the shut down option and then cancelling, the focus does go to one of the apps on the desktop (the most recently used one) but the global keybindings still don't work and the panel menu still appears highlighted.
Ah, got a little more info. Most metacity keyboard commands will fail if it can't grab either the mouse or the keyboard. There is at least one command (Ctrl-Alt-Shift-<Arrow> to move the currently focused window to another desktop) which only fails if grabbing the keyboard fails. After triggering this bug and using the steps in comment 3 to get a window to be focused, I can use Ctrl-Alt-Shift-<Arrow> to move the window to another workspace, I just can't get other keybindings to work. So this appears to be a stuck mouse grab rather than a stuck keyboard grab.
*** Bug 336230 has been marked as a duplicate of this bug. ***
*** Bug 329856 has been marked as a duplicate of this bug. ***
Matthias points out the likely cause of this in bug 329856, so if any volunteer wants to debug... :)
Ubuntu bug about that: https://launchpad.net/products/gnome-panel/+bug/57939
Now (after bug 329856 has been fixed?) it seems this bug does not appear anymore (in gnome 2.26.1). Should probably be resolved as NOTABUG.
It is still an issue with gnome-panel 2.26.3. Just as the launchpad reporter describes: 1. Open a random application. 2. Press Ctrl-Alt-Esc to focus the main menu bar. 3. Press the right arrow key to make the applications-menu appear. 4. Try to focus the window of the application opened at step 1 using only the keyboard. It is not possible to focus any other window or to get away from the applet you navigated to.Not with Ctrl+Alt+Esc, not with Alt-Tab nor with everything else. One has to use the mouse and click a window to get the normal behaviour back. Please reopen this bug.