Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 57618 - [KeyBindings] Global action, Delete, is missing accelerator
Summary: [KeyBindings] Global action, Delete, is missing accelerator
Status: RESOLVED DUPLICATE of bug 44354
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Douglas Pollock CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 13:50 EDT by Victor Gonzalez Jr CLA
Modified: 2004-04-07 10:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Gonzalez Jr CLA 2004-04-06 13:50:50 EDT
It is common practice to bind the Edit->Delete action of any application to the
'Delete' key (DEL). Eclipse is missing this binding. As a work around, it would
have been nice for an end-user to have the option of going into the
Preferences->Workbench->Keys page to set the accelerator. However, the
Delete/Del option is also missing there, under the key sequence combo box.

Having taken a quick glance at the Eclipse source code, it appears that all
views & editors are hard coded to listen to the handleKeyPressed event, for SWT.DEL
Comment 1 Douglas Pollock CLA 2004-04-07 10:33:55 EDT
This has been partly fixed in 3.0.  "org.eclipse.ui.edit.delete" is bound to 
"DEL", and new implementors are being encourage to use this command.  There is 
still a lot of legacy code that is using "DEL" directly, and this probably 
won't change in the 3.0 timeline (there is simply not enough time left).  To 
make this as seamless as possible, the key binding system allows delete to be 
proposed by the focus control before attempting to apply the key binding.  This 
allows native widget behaviour to take precedence, as well as legacy delete key 
listeners. 
 
This solution is not perfect, but for most users should be transparent.  It's 
only if you actually bind delete to something other than "DEL" that you might 
see inconsistent behaviour. 

*** This bug has been marked as a duplicate of 44354 ***