Adding a Ctrl-i keystroke [message #222339] |
Wed, 30 August 2006 12:40  |
Eclipse User |
|
|
|
Originally posted by: pbeag_RemoverIfNotASpammer_an.yahoo.com
I want to have CTRL-i invoke a specific action in my editor. I
can't seem to get the correct syntax. Any ideas?
This works fine for mapping to the F2 key:
KeyHandler sharedKeyHandler = new KeyHandler();
sharedKeyHandler.put(KeyStroke.getPressed(SWT.F2, 0),
getActionRegistry().getAction( GEFActionConstants.DIRECT_EDIT));
but if I want to map to CTRL-i , this doesn't work :
sharedKeyHandler.put(KeyStroke.getPressed('i', SWT.CTRL),
getActionRegistry().getAction( GEFActionConstants.DIRECT_EDIT));
Any ideas? Thanks!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06109 seconds