Uses of Class
com.vaadin.flow.component.ShortcutRegistration
Packages that use ShortcutRegistration
-
Uses of ShortcutRegistration in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return ShortcutRegistrationModifier and TypeMethodDescriptiondefault ShortcutRegistrationClickNotifier.addClickShortcut(Key key, KeyModifier... keyModifiers) Adds a shortcut which 'clicks' theComponentwhich implementsClickNotifierinterface.default ShortcutRegistrationFocusable.addFocusShortcut(Key key, KeyModifier... keyModifiers) static ShortcutRegistrationShortcuts.addShortcutListener(Component lifecycleOwner, ShortcutEventListener listener, Key key, KeyModifier... keyModifiers) Invoke aShortcutEventListenerwhen the shortcut is invoked.static ShortcutRegistrationShortcuts.addShortcutListener(Component lifecycleOwner, Command command, Key key, KeyModifier... keyModifiers) Invoke aCommandwhen the shortcut is invoked.UI.addShortcutListener(ShortcutEventListener listener, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to theUIwhich executes the givenComponentEventListenerwhen invoked.UI.addShortcutListener(Command command, Key key, KeyModifier... keyModifiers) Registers a global shortcut tied to theUIwhich executes the givenCommandwhen 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 givenComponent.Fluently define theComponentonto which the shortcut's listener is bound.ShortcutRegistration.withAlt()Fluently addsKeyModifier.ALTto the shortcut's modifiers.ShortcutRegistration.withCtrl()Fluently addsKeyModifier.CONTROLto the shortcut's modifiers.ShortcutRegistration.withMeta()Fluently addsKeyModifier.METAto the shortcut's modifiers.ShortcutRegistration.withModifiers(KeyModifier... keyModifiers) ConfiguresKeyModifiersfor the shortcut.ShortcutRegistration.withShift()Fluently addsKeyModifier.SHIFTto the shortcut's modifiers.