How to restore default keybindings (Ctrl+A, Ctrl+C, etc) for widgets in SWT?
问题 When I edit a text field and press Ctrl + A , then instead of selecting all text in the field, the main menu's handler for Ctrl + A is called. How to restore the default behaviour, without losing the Ctrl + A accelerator in menu? 回答1: Ctrl + A doesn't do anything on my WinXP workstation using the following snippet. So there is no "default behaviour": import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class Snippet22 { public static void main( String[] args ) { Display