public final class ModifierKeyDoubleClickHandler
extends java.lang.Object
Constructor and Description |
---|
ModifierKeyDoubleClickHandler() |
Modifier and Type | Method and Description |
---|---|
static ModifierKeyDoubleClickHandler |
getInstance() |
static int |
getMultiCaretActionModifier() |
boolean |
isRunningAction() |
void |
registerAction(java.lang.String actionId,
int modifierKeyCode,
int actionKeyCode) |
void |
registerAction(java.lang.String actionId,
int modifierKeyCode,
int actionKeyCode,
boolean skipIfActionHasShortcut) |
void |
unregisterAction(java.lang.String actionId) |
public static ModifierKeyDoubleClickHandler getInstance()
public static int getMultiCaretActionModifier()
public void registerAction(java.lang.String actionId, int modifierKeyCode, int actionKeyCode, boolean skipIfActionHasShortcut)
actionId
- Id of action to be triggered on modifier+modifier[+actionKey]modifierKeyCode
- keyCode for modifier, e.g. KeyEvent.VK_SHIFTactionKeyCode
- keyCode for actionKey, or -1 if action should be triggered on bare modifier double clickskipIfActionHasShortcut
- do not invoke action if a shortcut is already bound to it in keymappublic void registerAction(java.lang.String actionId, int modifierKeyCode, int actionKeyCode)
actionId
- Id of action to be triggered on modifier+modifier[+actionKey]modifierKeyCode
- keyCode for modifier, e.g. KeyEvent.VK_SHIFTactionKeyCode
- keyCode for actionKey, or -1 if action should be triggered on bare modifier double clickpublic void unregisterAction(java.lang.String actionId)
public boolean isRunningAction()