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 KeyModifier
Returns theKeyModifier
forkey
.static KeyModifier
Returns 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 ofKeyModifiers
that, in combination with the primary key, triggered the shortcut.Methods in com.vaadin.flow.component with parameters of type KeyModifierModifier and TypeMethodDescriptiondefault ShortcutRegistration
ClickNotifier.addClickShortcut
(Key key, KeyModifier... keyModifiers) Adds a shortcut which 'clicks' theComponent
which implementsClickNotifier
interface.default ShortcutRegistration
Focusable.addFocusShortcut
(Key key, KeyModifier... keyModifiers) default Registration
KeyNotifier.addKeyDownListener
(Key key, ComponentEventListener<KeyDownEvent> listener, KeyModifier... modifiers) Adds akeydown
listener to this component, which will trigger only if the keys involved in the event match thekey
andmodifiers
parameters.default Registration
KeyNotifier.addKeyPressListener
(Key key, ComponentEventListener<KeyPressEvent> listener, KeyModifier... modifiers) Adds akeypress
listener to this component, which will trigger only if the keys involved in the event match thekey
andmodifiers
parameters.default Registration
KeyNotifier.addKeyUpListener
(Key key, ComponentEventListener<KeyUpEvent> listener, KeyModifier... modifiers) Adds akeyup
listener to this component, which will trigger only if the keys involved in the event match thekey
andmodifiers
parameters.static ShortcutRegistration
Shortcuts.addShortcutListener
(Component lifecycleOwner, ShortcutEventListener listener, Key key, KeyModifier... keyModifiers) Invoke aShortcutEventListener
when the shortcut is invoked.static ShortcutRegistration
Shortcuts.addShortcutListener
(Component lifecycleOwner, Command command, Key key, KeyModifier... keyModifiers) Invoke aCommand
when the shortcut is invoked.UI.addShortcutListener
(ShortcutEventListener listener, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to theUI
which executes the givenComponentEventListener
when invoked.UI.addShortcutListener
(Command command, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to theUI
which executes the givenCommand
when invoked.boolean
ShortcutEvent.matches
(Key key, KeyModifier... keyModifiers) Checks if the event matches the givenKey
and (optional)KeyModifiers
.ShortcutRegistration.withModifiers
(KeyModifier... keyModifiers) ConfiguresKeyModifiers
for 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 tolistener
only ifkey
is 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.internal
Methods in com.vaadin.flow.component.internal that return types with arguments of type KeyModifierModifier and TypeMethodDescriptionKeyboardEvent.getModifiers()
Gets the set ofKeyModifier
of the event. -
Uses of KeyModifier in com.vaadin.testbench.unit
Methods in com.vaadin.testbench.unit with parameters of type KeyModifierModifier and TypeMethodDescriptionvoid
BaseUIUnitTest.fireShortcut
(Key key, KeyModifier... modifiers) Simulates a keyboard shortcut performed on the browser.