[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] CTRL+<key> combination possible?
|
Hi,
looking at and copying from Logic example and
LogicEditor.getCommonKeyHandler() , i started to implement
key combinations for certain actions.
But i get stuck, when i try to implement key combinations with modifiers
like ALT or CTRL !
Whereas this does work fine in LogicEditor.getCommonKeyHandler() :
...
sharedKeyHandler.put(KeyStroke.getPressed('j', 106, 0),
getActionRegistry().getAction(MyAction.ID)); // single j as key
...
something like this does NOT work:
...
sharedKeyHandler.put(KeyStroke.getPressed('j', SWT.CONROL),
getActionRegistry().getAction(MyAction.ID)); // single CTRG+j as key
...
Where is the problem? I know, that there are some exceptions for key
combinations like CONROL+X, CONROL+V, but i tried it with many different
characters and none of it worked.
Thanks in advance
Sven Wende