Uses of Class
com.vaadin.flow.component.KeyModifier
-
Packages that use KeyModifier Package Description com.vaadin.flow.component com.vaadin.flow.component.contextmenu com.vaadin.flow.component.internal -
-
Uses of KeyModifier in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return KeyModifier Modifier and Type Method Description static KeyModifierKeyModifier. of(String key)Returns theKeyModifierforkey.static KeyModifierKeyModifier. valueOf(String name)Returns the enum constant of this type with the specified name.static KeyModifier[]KeyModifier. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.vaadin.flow.component that return types with arguments of type KeyModifier Modifier and Type Method Description Set<KeyModifier>ShortcutEvent. getKeyModifiers()Set ofKeyModifiersthat, in combination with the primary key, triggered the shortcut.Methods in com.vaadin.flow.component with parameters of type KeyModifier Modifier and Type Method Description default ShortcutRegistrationClickNotifier. addClickShortcut(Key key, KeyModifier... keyModifiers)Adds a shortcut which 'clicks' theComponentwhich implementsClickNotifierinterface.default ShortcutRegistrationFocusable. addFocusShortcut(Key key, KeyModifier... keyModifiers)default RegistrationKeyNotifier. addKeyDownListener(Key key, ComponentEventListener<KeyDownEvent> listener, KeyModifier... modifiers)Adds akeydownlistener to this component, which will trigger only if the keys involved in the event match thekeyandmodifiersparameters.default RegistrationKeyNotifier. addKeyPressListener(Key key, ComponentEventListener<KeyPressEvent> listener, KeyModifier... modifiers)Adds akeypresslistener to this component, which will trigger only if the keys involved in the event match thekeyandmodifiersparameters.default RegistrationKeyNotifier. addKeyUpListener(Key key, ComponentEventListener<KeyUpEvent> listener, KeyModifier... modifiers)Adds akeyuplistener to this component, which will trigger only if the keys involved in the event match thekeyandmodifiersparameters.static ShortcutRegistrationShortcuts. addShortcutListener(Component lifecycleOwner, ShortcutEventListener listener, Key key, KeyModifier... keyModifiers)Invoke aShortcutEventListenerwhen the shortcut is invoked.static ShortcutRegistrationShortcuts. addShortcutListener(Component lifecycleOwner, Command command, Key key, KeyModifier... keyModifiers)Invoke aCommandwhen the shortcut is invoked.ShortcutRegistrationUI. addShortcutListener(ShortcutEventListener listener, Key key, KeyModifier... keyModifiers)Registers a global shortcut tied to theUIwhich executes the givenComponentEventListenerwhen invoked.ShortcutRegistrationUI. addShortcutListener(Command command, Key key, KeyModifier... keyModifiers)Registers a global shortcut tied to theUIwhich executes the givenCommandwhen invoked.booleanShortcutEvent. matches(Key key, KeyModifier... keyModifiers)Checks if the event matches the givenKeyand (optional)KeyModifiers.ShortcutRegistrationShortcutRegistration. withModifiers(KeyModifier... keyModifiers)ConfiguresKeyModifiersfor the shortcut.Constructors in com.vaadin.flow.component with parameters of type KeyModifier Constructor Description KeyEventListener(ComponentEventListener<E> listener, Key key, KeyModifier... modifiers)Create a listener which will delegate tolisteneronly ifkeyis the target key.Constructor parameters in com.vaadin.flow.component with type arguments of type KeyModifier Constructor Description ShortcutEvent(Component source, Component lifecycleOwner, Key key, Set<KeyModifier> keyModifiers)Creates a newShortcutEvent. -
Uses of KeyModifier in com.vaadin.flow.component.contextmenu
Methods in com.vaadin.flow.component.contextmenu with parameters of type KeyModifier Modifier and Type Method Description ShortcutRegistrationGeneratedVaadinContextMenu. addClickShortcut(Key key, KeyModifier... keyModifiers)Deprecated.since v23.3, generated classes will be removed in v24. -
Uses of KeyModifier in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return types with arguments of type KeyModifier Modifier and Type Method Description Set<KeyModifier>KeyboardEvent. getModifiers()Gets the set ofKeyModifierof the event.
-