public class Accelerator extends Object
KeyCode
plus
InputModifiers
.Constructor and Description |
---|
Accelerator(KeyCode keyCode,
InputModifiers modifiers) |
Modifier and Type | Method and Description |
---|---|
static Accelerator |
create(String acc)
Creates an accelerator from the given string representation.
|
boolean |
equals(Object o) |
KeyCode |
getKeyCode() |
InputModifiers |
getModifiers() |
int |
hashCode() |
static boolean |
isCtrlReplacedWithMeta() |
String |
toString() |
public Accelerator(KeyCode keyCode, InputModifiers modifiers)
public KeyCode getKeyCode()
public InputModifiers getModifiers()
public static Accelerator create(String acc)
<modifiers>* <keyCode>
modifiers := alt | altGraph | control | meta | shift
keyCode := KeyCode
field (e.g., COMMA or UP)
For convenience:
public static boolean isCtrlReplacedWithMeta()
Copyright © 2015–2022 SciJava. All rights reserved.