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 intALT_CTRL_MASKstatic intCTRL_CMD_MASKstatic intSHIFT_ALT_MASK -
Constructor Summary
Constructors Constructor Description ShortcutUtils() -
Method Summary
Modifier and Type Method Description static intgetAltOrControlMask()static KeyStrokegetCommandKeystroke(int keyCode)static KeyStrokegetCommandKeystrokeWithMask(int keyCode, int mask)static intgetControlOrCommandMask()static KeyStrokegetCopyKeyStroke()static KeyStrokegetCopyKeyStrokeWithMask(int mask)static StringgetReadableKeyStroke(KeyStroke keyStroke)static intgetShiftOrAltMask()static booleanisControlOrCommand(KeyEvent e)static booleanisCopyKey(KeyEvent e)static booleanisCutKey(KeyEvent e)static booleanisFindKey(KeyEvent e)static booleanisPasteKey(KeyEvent e)static booleanisRedoKey(KeyEvent e)static booleanisReturnChar(KeyEvent e)static booleanisSaveKey(KeyEvent e)static booleanisSelectAllKey(KeyEvent e)static booleanisUndoKey(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
-