Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Select Drag and Drop Action depending on Keyboard state
Select Drag and Drop Action depending on Keyboard state [message #1802602] Tue, 12 February 2019 15:31
Lukas Baron is currently offline Lukas BaronFriend
Messages: 17
Registered: June 2012
Junior Member
Hi,
is it somehow possible to change the drop behaviour, i.e. the drop action, depending on the state of the keyboard? I am interested in this, because instead of linking things in a TreeView, I want to copy the dragged elements when the Ctrl-Key is pressed.

For instance, we are in the DropAdapter, where the DropTargetEvent is available. Unfortunately, the DropTargetEvent does not yield a stateMask as, for example, a MouseEvent does. I tried to register a Listener to the widget that comes with the DropTargetEvent, but it seems that during drag operations, no other event is being generated.

Is there any way to get the state of the keyboard during drag operations?

Thanks in advance.
Previous Topic:Do additional validation when IFolder is created
Next Topic:Eclipse XML Editor format avoid comments
Goto Forum:
  


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

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

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

Back to the top