Package com.vaadin.browserless.internal
Class Shortcuts
java.lang.Object
com.vaadin.browserless.internal.Shortcuts
Functions for firing keyboard shortcuts.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void_fireShortcut(Component component, Key key, Key... modifiers) Use the globalfireShortcut(Key, Key...)function unless you know what you're doing!static voidfireShortcut(Key key, Key... modifiers) Fires a shortcut event with givenkeyandmodifiersin the current UI.
-
Method Details
-
fireShortcut
Fires a shortcut event with givenkeyandmodifiersin 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
Use the globalfireShortcut(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.
-