Class Shortcuts

java.lang.Object
com.vaadin.browserless.internal.Shortcuts

public final class Shortcuts extends Object
Functions for firing keyboard shortcuts.

For internal use only. May be renamed or removed in a future release.

  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    _fireShortcut(com.vaadin.flow.component.Component component, com.vaadin.flow.component.Key key, com.vaadin.flow.component.Key... modifiers)
    Use the global fireShortcut(Key, Key...) function unless you know what you're doing!
    static void
    fireShortcut(com.vaadin.flow.component.Key key, com.vaadin.flow.component.Key... modifiers)
    Fires a shortcut event with given key and modifiers in the current UI.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fireShortcut

      public static void fireShortcut(com.vaadin.flow.component.Key key, com.vaadin.flow.component.Key... modifiers)
      Fires a shortcut event with given key and modifiers in the current UI. This will in turn notify all components currently attached to the current UI which subscribed for this exact key combination.
      Parameters:
      key - the key, not null.
      modifiers - the modifier keys.
    • _fireShortcut

      public static void _fireShortcut(com.vaadin.flow.component.Component component, com.vaadin.flow.component.Key key, com.vaadin.flow.component.Key... modifiers)
      Use the global fireShortcut(Key, Key...) function unless you know what you're doing!
      Parameters:
      component - the component to fire the shortcut on.
      key - the key, not null.
      modifiers - the modifier keys.