Class ShortcutUtils
java.lang.Object
com.illumon.iris.console.utils.input.ShortcutUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static KeyStroke
getCommandKeystroke
(int keyCode) static KeyStroke
getCommandKeystrokeWithMask
(int keyCode, int mask) static int
static KeyStroke
static KeyStroke
getCopyKeyStrokeWithMask
(int mask) static String
getReadableKeyStroke
(KeyStroke keyStroke) static int
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
-
Field Details
-
CTRL_CMD_MASK
public static final int CTRL_CMD_MASK -
ALT_CTRL_MASK
public static final int ALT_CTRL_MASK -
SHIFT_ALT_MASK
public static final int SHIFT_ALT_MASK
-
-
Constructor Details
-
ShortcutUtils
public ShortcutUtils()
-
-
Method Details
-
getControlOrCommandMask
public static int getControlOrCommandMask() -
getAltOrControlMask
public static int getAltOrControlMask() -
getShiftOrAltMask
public static int getShiftOrAltMask() -
getReadableKeyStroke
-
getCommandKeystroke
-
getCommandKeystrokeWithMask
-
getCopyKeyStrokeWithMask
-
getCopyKeyStroke
-
isControlOrCommand
-
isCopyKey
-
isCutKey
-
isPasteKey
-
isUndoKey
-
isRedoKey
-
isFindKey
-
isSelectAllKey
-
isReturnChar
-
isSaveKey
-