Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get to know control key is pressed in SelectionManager(How to get to know control key is pressed in SelectionManager)
How to get to know control key is pressed in SelectionManager [message #500182] Wed, 25 November 2009 09:46
Vikram Jain is currently offline Vikram JainFriend
Messages: 8
Registered: July 2009
Junior Member
Hi

I want to get control when i press Ctrl + click in my SelectionManager. But when i press Click on editpart, the control comes to getDiagramGraphicalViewer().setSelectionManager(new org.eclipse.gef.SelectionManager(){});. Now I want to check if and only of Ctrl plus click is pressed simultaneously on then the inside logic of the function should get execute, kindly please tell me how to check that ctrl key is pressed on the keyboard. My problem is that i couldn't find any object to which KeyListener can be added and o could know that Ctrl key has been pressed. Kindly please guide me.

Regards
Vikram
Previous Topic:Ctrl + Click afor editpart Selection and performing some action
Next Topic:Create Simple Text Editor using GMF
Goto Forum:
  


Current Time: Fri Apr 26 04:24:17 GMT 2024

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

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

Back to the top