Class ShortcutAction

java.lang.Object
com.vaadin.classic.v8.event.Action
com.vaadin.classic.v8.event.ShortcutAction
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ShortcutListener

@Deprecated public class ShortcutAction extends Action
Deprecated.
Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.
See Also:
  • Field Details

    • SHORTHAND_CHAR_ALT

      @Deprecated public static final char SHORTHAND_CHAR_ALT
      Deprecated.
      Used in the caption shorthand notation to indicate the ALT modifier.
      See Also:
    • SHORTHAND_CHAR_SHIFT

      @Deprecated public static final char SHORTHAND_CHAR_SHIFT
      Deprecated.
      Used in the caption shorthand notation to indicate the SHIFT modifier.
      See Also:
    • SHORTHAND_CHAR_CTRL

      @Deprecated public static final char SHORTHAND_CHAR_CTRL
      Deprecated.
      Used in the caption shorthand notation to indicate the CTRL modifier.
      See Also:
  • Constructor Details

    • ShortcutAction

      @Deprecated public ShortcutAction(String caption, int kc, int... m)
      Deprecated.
      Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.
      Parameters:
      caption - used when displaying the shortcut visually
      kc - KeyCode that the shortcut reacts to
      m - optional modifier keys
    • ShortcutAction

      @Deprecated public ShortcutAction(String caption, Resource icon, int kc, int... m)
      Deprecated.
      Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.
      Parameters:
      caption - used when displaying the shortcut visually
      icon - used when displaying the shortcut visually
      kc - KeyCode that the shortcut reacts to
      m - optional modifier keys
    • ShortcutAction

      @Deprecated public ShortcutAction(String shorthandCaption)
      Deprecated.
    • ShortcutAction

      @Deprecated public ShortcutAction(String shorthandCaption, int... modifierKeys)
      Deprecated.
      Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.
      Parameters:
      shorthandCaption -
      modifierKeys -
  • Method Details

    • getKeyCode

      @Deprecated public int getKeyCode()
      Deprecated.
      Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.
      Returns:
      -1
    • getModifiers

      @Deprecated public int[] getModifiers()
      Deprecated.
      Not supported. See Classic Component Pack documentation in https://vaadin.com/docs/latest/flow/upgrading/legacy-component-pack for mitigation options.
      Returns:
      empty array