Uses of Enum Class
com.vaadin.flow.component.KeyModifier
Packages that use KeyModifier
Package
Description
-
Uses of KeyModifier in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return KeyModifierModifier and TypeMethodDescriptionstatic KeyModifierReturns theKeyModifierforkey.static KeyModifierReturns the enum constant of this class with the specified name.static KeyModifier[]KeyModifier.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.vaadin.flow.component that return types with arguments of type KeyModifierModifier and TypeMethodDescriptionShortcutEvent.getKeyModifiers()Set ofKeyModifiersthat, in combination with the primary key, triggered the shortcut.Methods in com.vaadin.flow.component with parameters of type KeyModifierModifier and TypeMethodDescriptiondefault 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.UI.addShortcutListener(ShortcutEventListener listener, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to theUIwhich executes the givenComponentEventListenerwhen invoked.UI.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.ShortcutRegistration.withModifiers(KeyModifier... keyModifiers) ConfiguresKeyModifiersfor the shortcut.Constructors in com.vaadin.flow.component with parameters of type KeyModifierModifierConstructorDescriptionKeyEventListener(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 KeyModifierModifierConstructorDescriptionShortcutEvent(Component source, Component lifecycleOwner, Key key, Set<KeyModifier> keyModifiers) Creates a newShortcutEvent. -
Uses of KeyModifier in com.vaadin.flow.component.button
Methods in com.vaadin.flow.component.button with parameters of type KeyModifier -
Uses of KeyModifier in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return types with arguments of type KeyModifierModifier and TypeMethodDescriptionKeyboardEvent.getModifiers()Gets the set ofKeyModifierof the event. -
Uses of KeyModifier in com.vaadin.testbench.unit
Methods in com.vaadin.testbench.unit with parameters of type KeyModifierModifier and TypeMethodDescriptionvoidBaseUIUnitTest.fireShortcut(Key key, KeyModifier... modifiers) Simulates a keyboard shortcut performed on the browser.