Class ShortcutAction

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Constructor Detail

      • ShortcutAction

        @Deprecated
        public ShortcutAction​(java.lang.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​(java.lang.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​(java.lang.String shorthandCaption)
        Deprecated.
      • ShortcutAction

        @Deprecated
        public ShortcutAction​(java.lang.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 Detail

      • 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