F2 key not working!!! [message #186051] |
Fri, 01 July 2005 08:53 |
Eclipse User |
|
|
|
Originally posted by: gautamn.iitk.ac.in
I enabled my keyboard for editing GEF figures using following code:
/*********************************************************** ****************/
protected KeyHandler getCommonKeyHandler(){
KeyHandler sharedKeyHandler = new KeyHandler();
sharedKeyHandler.put(KeyStroke.getPressed(SWT.DEL, 127, 0),
getActionRegistry().getAction(
GEFActionConstants.DELETE));
sharedKeyHandler.put(KeyStroke.getPressed(SWT.F2, 0),
getActionRegistry().getAction(
GEFActionConstants.DIRECT_EDIT));
return sharedKeyHandler;
}
/*********************************************************** ****************/
the delete key is working fine but F2 is working for direct editing....Can
anyone suggest something.
Regards,
Nitin.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05778 seconds