Class ShortcutUtils

java.lang.Object
com.illumon.iris.console.utils.input.ShortcutUtils

public class ShortcutUtils extends Object
  • 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

      public static String getReadableKeyStroke(KeyStroke keyStroke)
    • getCommandKeystroke

      public static KeyStroke getCommandKeystroke(int keyCode)
    • getCommandKeystrokeWithMask

      public static KeyStroke getCommandKeystrokeWithMask(int keyCode, int mask)
    • getCopyKeyStrokeWithMask

      public static KeyStroke getCopyKeyStrokeWithMask(int mask)
    • getCopyKeyStroke

      public static KeyStroke getCopyKeyStroke()
    • isControlOrCommand

      public static boolean isControlOrCommand(KeyEvent e)
    • isCopyKey

      public static boolean isCopyKey(KeyEvent e)
    • isCutKey

      public static boolean isCutKey(KeyEvent e)
    • isPasteKey

      public static boolean isPasteKey(KeyEvent e)
    • isUndoKey

      public static boolean isUndoKey(KeyEvent e)
    • isRedoKey

      public static boolean isRedoKey(KeyEvent e)
    • isFindKey

      public static boolean isFindKey(KeyEvent e)
    • isSelectAllKey

      public static boolean isSelectAllKey(KeyEvent e)
    • isReturnChar

      public static boolean isReturnChar(KeyEvent e)
    • isSaveKey

      public static boolean isSaveKey(KeyEvent e)