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 Details

    • fireShortcut

      public static void fireShortcut(Key key, 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(Component component, Key key, 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.