Class ShortcutUtils
java.lang.Object
com.illumon.iris.console.utils.input.ShortcutUtils
public class ShortcutUtils extends Object
-
Field Summary
Fields Modifier and Type Field Description static int
ALT_CTRL_MASK
static int
CTRL_CMD_MASK
static int
SHIFT_ALT_MASK
-
Constructor Summary
Constructors Constructor Description ShortcutUtils()
-
Method Summary
Modifier and Type Method Description static int
getAltOrControlMask()
static KeyStroke
getCommandKeystroke(int keyCode)
static KeyStroke
getCommandKeystrokeWithMask(int keyCode, int mask)
static int
getControlOrCommandMask()
static KeyStroke
getCopyKeyStroke()
static KeyStroke
getCopyKeyStrokeWithMask(int mask)
static String
getReadableKeyStroke(KeyStroke keyStroke)
static int
getShiftOrAltMask()
static boolean
isControlOrCommand(KeyEvent e)
static boolean
isCopyKey(KeyEvent e)
static boolean
isCutKey(KeyEvent e)
static boolean
isFindKey(KeyEvent e)
static boolean
isPasteKey(KeyEvent e)
static boolean
isRedoKey(KeyEvent e)
static boolean
isReturnChar(KeyEvent e)
static boolean
isSaveKey(KeyEvent e)
static boolean
isSelectAllKey(KeyEvent e)
static boolean
isUndoKey(KeyEvent e)
-
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
-