GNOME Bugzilla – Bug 118491
Keyboard focus lost after application is started.
Last modified: 2004-12-22 21:47:04 UTC
Using gnome-2.4 nightly build from 22 July 2003. .logged in as root or normal user Whilst trying to navigate gnome without the mouse, using only keyboard shortcuts, I got locked in the top panel and could not focus any other active windows. reproduce: - hit alt-f1 to bring up top panel applications menu - use keyboard to launch app like gedit - hit alt-tab and try to select newly opened window .alt-tab does nothing and all that you can do is cycle through the selections in the top panel. This is pretty critical for users who rely on navigating solely with the keyboard. The only escape I found was to click out of top panel with the mouse.
this bug is similar to the one below: http://bugzilla.gnome.org/show_bug.cgi?id=114480
With build from July 29th I see the following: - Hit Alt+F1 to bring up top panel applications menu. - use keyboard to laucnh an app, say Text Editor Text Editor window shows focus but will not accept keyboard input. Must use mouse to recover.
Marking AP1 to reflect a11y team's assessment of accessibility impact.
It looks like XUngrabKeyboard is not being called when we launch an application. It is called when we click with the mouse in the application. I think this explains what is happening. Now to understand why ...
I have compared the code in panel-menu-bar.c with what happens when F10 is used to activate menubar in an application which explains the patch I am about to attach.
Created attachment 18926 [details] [review] Proposed patch
Apologies for spam... marking as GNOMEVER2.3 so it appears on the official GNOME bug list :)
*** Bug 118252 has been marked as a duplicate of this bug. ***
The patch looks great Padraig, thanks :-) I knew that code was dodgy when I wrote it ... :/
Patch committed to CVS HEAD.