Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 41832 - Add key binding in preferences and focus is lost
Summary: Add key binding in preferences and focus is lost
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 42465
Blocks:
  Show dependency tree
 
Reported: 2003-08-21 16:14 EDT by Douglas Pollock CLA
Modified: 2003-10-31 18:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Pollock CLA 2003-08-21 16:14:46 EDT
This is specific to the GTK2.x implementation of SWT, but may occur elsewhere. 
After certain events (e.g., adding a key binding, removing a key binding, etc.)
on the KeyPreferencesDialog, focus is lost completely (i.e., tab does nothing).
 To restore focus, a mouse click must occur on some focusable widget to restore
the focus.  This is a problem for accessibility.

Not sure if it is a design flaw in the KeyPreferencesDialog, or in GTK-SWT. 
This problem does not occur on Windows XP.

As a side note, I've noticed that focus is erratic in GTK.  Sometimes focus
seems to disappear completely and can't be restored without re-opening the dialog.


STEPS TO REPRODUCE:
1.) Open KeyPreferencesDialog.  (Window>Prefereces, Workbench>Keys)
2.) Select any command/action from the tree on the left.  For example, Help>About.
3.) Press tab until you are focused on the Key Sequence combo box.
4.) Type in "Ctrl+I".
5.) Tab to the "Add" button.
6.) Press the space bar to activate the "Add" button.
7.) Press the Tab key repeatedly.

EXPECTED RESULTS:
Focus should appear somewhere on the dialog.

ACTUAL RESULTS:
Focus is lost.  Using ALT+TAB to remove and restore focus to the dialog does not
have an effect on the focus.  Mouse-clicking on the Key Sequence combo box (for
example) restores focus.

OTHER NOTES:
Some other traversal keys are effected (e.g., ESC), but not others (e.g.,
RETURN/ENTER).
Comment 1 Silenio Quarti CLA 2003-10-31 18:11:31 EST
This no longer happens for me. Please reopen if you can reproduce it.