Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Key Shortcuts
Key Shortcuts [message #185997] Thu, 30 June 2005 23:41 Go to next message
Eclipse UserFriend
Originally posted by: J_ML.netcabo.pt

Hi again... just making sure someone knows how to help me cause i can't
seem to find out. I'm looking for a way to make key shortcuts to my
editor's right mouse menu.

Anyone know how? thanks
Re: Key Shortcuts [message #186012 is a reply to message #185997] Fri, 01 July 2005 02:40 Go to previous message
Dazhen Gao is currently offline Dazhen GaoFriend
Messages: 21
Registered: July 2009
Junior Member
I think setAccelerator(int keycode) method only show menu.
for example,
Action a = //gets the action
a.setAccelerator( SWT.CTRL | 'V' );

The pop menu show the key shortcuts, but if you want the key shortcuts call
the action, you should change the GraphicalViewerKeyHandler .
for example
put( KeyStroke.getPressed( SWT.F2, 0 ),
actionRegistry.getAction( GEFActionConstants.DIRECT_EDIT) );

""Jos
Previous Topic:How do I enforce single selection in GEF?
Next Topic:Parent-Child relationship!!!
Goto Forum:
  


Current Time: Mon Dec 02 20:33:35 GMT 2024

Powered by FUDForum. Page generated in 0.04874 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top