Uses of Class
com.vaadin.flow.component.ShortcutRegistration
-
Uses of ShortcutRegistration in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return ShortcutRegistrationModifier 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) 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.ShortcutRegistration.allowBrowserDefault()
Allows the default keyboard event handling when the shortcut is invoked.
ShortcutRegistration.allowEventPropagation()
Allow the event to propagate upwards in the DOM tree, when the shortcut is invoked.
ShortcutRegistration.bindLifecycleTo
(Component component) Binds the shortcut's life cycle to that of the given
Component
.Fluently define the
Component
onto which the shortcut's listener is bound.ShortcutRegistration.resetFocusOnActiveElement()
Reset focus on active element before triggering shortcut event handler.
ShortcutRegistration.setDisabledUpdateMode
(DisabledUpdateMode disabledUpdateMode) Configure whether this listener will be called even in cases when the component is disabled.
ShortcutRegistration.withAlt()
Fluently adds
KeyModifier.ALT
to the shortcut's modifiers.ShortcutRegistration.withCtrl()
Fluently adds
KeyModifier.CONTROL
to the shortcut's modifiers.ShortcutRegistration.withMeta()
Fluently adds
KeyModifier.META
to the shortcut's modifiers.ShortcutRegistration.withModifiers
(KeyModifier... keyModifiers) Configures
KeyModifiers
for the shortcut.ShortcutRegistration.withShift()
Fluently adds
KeyModifier.SHIFT
to the shortcut's modifiers. -
Uses of ShortcutRegistration in com.vaadin.flow.component.button
Methods in com.vaadin.flow.component.button that return ShortcutRegistration