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 KeyModifier
KeyModifier. of(String key)
Returns theKeyModifier
forkey
.static KeyModifier
KeyModifier. 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 ofKeyModifiers
that, 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 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.ShortcutRegistration
UI. addShortcutListener(ShortcutEventListener listener, Key key, KeyModifier... keyModifiers)
Registers a global shortcut tied to theUI
which executes the givenComponentEventListener
when invoked.ShortcutRegistration
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
ShortcutRegistration. withModifiers(KeyModifier... keyModifiers)
ConfiguresKeyModifiers
for 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 tolistener
only ifkey
is 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 ShortcutRegistration
GeneratedVaadinContextMenu. 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 ofKeyModifier
of the event.
-