Package | Description |
---|---|
com.vaadin.flow.component |
Modifier and Type | Method and Description |
---|---|
default ShortcutRegistration |
ClickNotifier.addClickShortcut(Key key,
KeyModifier... keyModifiers)
Adds a shortcut which 'clicks' the
Component which implements
ClickNotifier interface. |
default ShortcutRegistration |
Focusable.addFocusShortcut(Key key,
KeyModifier... keyModifiers)
|
ShortcutRegistration |
UI.addShortcutListener(Command command,
Key key,
KeyModifier... keyModifiers)
Registers a global shortcut tied to the
UI which executes the
given Command when invoked. |
static ShortcutRegistration |
Shortcuts.addShortcutListener(Component lifecycleOwner,
Command command,
Key key,
KeyModifier... keyModifiers)
Invoke a
Command when the shortcut is invoked. |
static ShortcutRegistration |
Shortcuts.addShortcutListener(Component lifecycleOwner,
ShortcutEventListener listener,
Key key,
KeyModifier... keyModifiers)
Invoke a
ShortcutEventListener when the shortcut is invoked. |
ShortcutRegistration |
UI.addShortcutListener(ShortcutEventListener listener,
Key key,
KeyModifier... keyModifiers)
Registers a global shortcut tied to the
UI which executes the
given ComponentEventListener when invoked. |
ShortcutRegistration |
ShortcutRegistration.allowBrowserDefault()
Allows the default keyboard event handling when the shortcut is invoked.
|
ShortcutRegistration |
ShortcutRegistration.allowEventPropagation()
Allow the event to propagate upwards in the DOM tree, when the shortcut
is invoked.
|
ShortcutRegistration |
ShortcutRegistration.bindLifecycleTo(Component component)
Binds the shortcut's life cycle to that of the given
Component . |
ShortcutRegistration |
ShortcutRegistration.listenOn(Component... listenOnComponents)
Fluently define the components to listen for shortcuts on.
|
ShortcutRegistration |
ShortcutRegistration.listenOn(Component listenOnComponent)
Fluently define the component to listen for shortcuts on.
|
ShortcutRegistration |
ShortcutRegistration.withAlt()
Fluently adds
KeyModifier.ALT to the shortcut's modifiers. |
ShortcutRegistration |
ShortcutRegistration.withCtrl()
Fluently adds
KeyModifier.CONTROL to the shortcut's modifiers. |
ShortcutRegistration |
ShortcutRegistration.withMeta()
Fluently adds
KeyModifier.META to the shortcut's modifiers. |
ShortcutRegistration |
ShortcutRegistration.withModifiers(KeyModifier... keyModifiers)
Configures
KeyModifiers for the shortcut. |
ShortcutRegistration |
ShortcutRegistration.withShift()
Fluently adds
KeyModifier.SHIFT to the shortcut's modifiers. |
Copyright © 2025. All rights reserved.