Uses of Enum Class
com.vaadin.flow.component.KeyModifier
-
Uses of KeyModifier in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return KeyModifierModifier and TypeMethodDescriptionstatic KeyModifier
Returns the
KeyModifier
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 of
KeyModifiers
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' the
Component
which implementsClickNotifier
interface.default ShortcutRegistration
Focusable.addFocusShortcut
(Key key, KeyModifier... keyModifiers) default Registration
KeyNotifier.addKeyDownListener
(Key key, ComponentEventListener<KeyDownEvent> listener, KeyModifier... modifiers) Adds a
keydown
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 a
keypress
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 a
keyup
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 a
ShortcutEventListener
when the shortcut is invoked.static ShortcutRegistration
Shortcuts.addShortcutListener
(Component lifecycleOwner, Command command, Key key, KeyModifier... keyModifiers) Invoke a
Command
when the shortcut is invoked.UI.addShortcutListener
(ShortcutEventListener listener, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to the
UI
which executes the givenComponentEventListener
when invoked.UI.addShortcutListener
(Command command, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to the
UI
which executes the givenCommand
when invoked.boolean
ShortcutEvent.matches
(Key key, KeyModifier... keyModifiers) Checks if the event matches the given
Key
and (optional)KeyModifiers
.ShortcutRegistration.withModifiers
(KeyModifier... keyModifiers) Configures
KeyModifiers
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 to
listener
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 new
ShortcutEvent
. -
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 of
KeyModifier
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.