Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338523 - [KeyBindings] Dialog is not closeable by ESC if keybinding with ESC key is defined
Summary: [KeyBindings] Dialog is not closeable by ESC if keybinding with ESC key is de...
Status: RESOLVED WONTFIX
Alias: None
Product: RAP
Classification: RT
Component: Workbench (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 348559
  Show dependency tree
 
Reported: 2011-03-01 06:05 EST by Ivan Furnadjiev CLA
Modified: 2012-02-17 12:19 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 Ivan Furnadjiev CLA 2011-03-01 06:05:37 EST
With the resolution of bug 337883 we found that it's not possible to close anymore a dialog with ESC key if there is a keybinding defined for ESC key too and the keybinding contextId is org.eclipse.ui.contexts.dialogAndWindow or org.eclipse.ui.contexts.dialog.
Comment 1 Ralf Sternberg CLA 2012-02-17 12:19:31 EST
This issue exists with all _traversal_ keys: Arrow keys, Tab and Shift-Tab, Return and Escape.

The reason is that for key combinations that are registered as KeyBindings, the default behavior is suppressed using CANCEL_KEYS. But the JavaScript client does not distinguish between traversal and key events.

Since ESC is used to close shells, popup menus, Combo popup lists, cell editors, etc., I doubt that using ESC as a keybinding makes any sense.  The same applies for all other traverse events.  Therefore I would recommend *not to use Escape, Return, Tab, or the arrow keys as keybindings in RAP*.