|Select Drag and Drop Action depending on Keyboard state [message #1802602]
||Tue, 12 February 2019 15:31
| Lukas Baron
Registered: June 2012
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.
Powered by FUDForum
. Page generated in 0.02801 seconds