Package com.jetbrains

Interface SystemShortcuts.Shortcut

Enclosing interface:
SystemShortcuts

@Provided public static interface SystemShortcuts.Shortcut
Information about a system shortcut
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a human-readable description of the shortcut action.
    Returns unique identifier for this shortcut.
    char
    Returns the key character for this shortcut.
    int
    Returns the key code for this shortcut.
    int
    Returns the modifier mask for this shortcut.
  • Method Details

    • getKeyCode

      int getKeyCode()
      Returns the key code for this shortcut. See KeyEvent for the list of key codes. If this shortcut doesn't have an associated key code, this method returns KeyEvent.VK_UNDEFINED.
      Returns:
      The shortcut's key code
    • getKeyChar

      char getKeyChar()
      Returns the key character for this shortcut. If this shortcut doesn't have an associated key character, this method returns KeyEvent.CHAR_UNDEFINED.
      Returns:
      The shortcut's key character
    • getModifiers

      int getModifiers()
      Returns the modifier mask for this shortcut. See InputEvent for the list of modifiers.
      Returns:
      The shortcut's modifiers mask
    • getId

      String getId()
      Returns unique identifier for this shortcut.
      Returns:
      Unique identifier for the shortcut action
    • getDescription

      String getDescription()
      Returns a human-readable description of the shortcut action.
      Returns:
      Human-readable description of the shortcut action