public class KeyPressedManager extends Object
KeyPressedManager
. The goal is to make keyboard click/drag behaviours
work like mouse click/drag: When a behaviour is initiated with a key press,
the window under the mouse receives focus and the behaviour is handled there.Modifier and Type | Class and Description |
---|---|
static interface |
KeyPressedManager.KeyPressedReceiver |
Constructor and Description |
---|
KeyPressedManager() |
Modifier and Type | Method and Description |
---|---|
void |
activate(KeyPressedManager.KeyPressedReceiver handler) |
void |
deactivate(KeyPressedManager.KeyPressedReceiver handler) |
void |
handleKeyPressed(KeyPressedManager.KeyPressedReceiver origin,
int mask,
boolean doubleClick,
gnu.trove.set.TIntSet pressedKeys) |
public void handleKeyPressed(KeyPressedManager.KeyPressedReceiver origin, int mask, boolean doubleClick, gnu.trove.set.TIntSet pressedKeys)
public void activate(KeyPressedManager.KeyPressedReceiver handler)
public void deactivate(KeyPressedManager.KeyPressedReceiver handler)
Copyright © 2015–2022 SciJava. All rights reserved.