Package | Description |
---|---|
com.vaadin.flow.component | |
com.vaadin.flow.component.internal |
Modifier and Type | Method and Description |
---|---|
static KeyModifier |
KeyModifier.of(String key)
Returns the
KeyModifier for key . |
static KeyModifier |
KeyModifier.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyModifier[] |
KeyModifier.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Set<KeyModifier> |
ShortcutEvent.getKeyModifiers()
Set of
KeyModifiers that, in combination with the
primary key, triggered the shortcut. |
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)
|
default Registration |
KeyNotifier.addKeyDownListener(Key key,
ComponentEventListener<KeyDownEvent> listener,
KeyModifier... modifiers)
Adds a
keydown listener to this component, which will trigger
only if the keys involved in the event match the key and
modifiers parameters. |
default Registration |
KeyNotifier.addKeyPressListener(Key key,
ComponentEventListener<KeyPressEvent> listener,
KeyModifier... modifiers)
Adds a
keypress listener to this component, which will trigger
only if the keys involved in the event match the key and
modifiers parameters. |
default Registration |
KeyNotifier.addKeyUpListener(Key key,
ComponentEventListener<KeyUpEvent> listener,
KeyModifier... modifiers)
Adds a
keyup listener to this component, which will trigger only
if the keys involved in the event match the key and
modifiers parameters. |
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. |
boolean |
ShortcutEvent.matches(Key key,
KeyModifier... keyModifiers)
Checks if the event matches the given
Key and (optional)
KeyModifiers . |
ShortcutRegistration |
ShortcutRegistration.withModifiers(KeyModifier... keyModifiers)
Configures
KeyModifiers for the shortcut. |
Constructor and Description |
---|
KeyEventListener(ComponentEventListener<E> listener,
Key key,
KeyModifier... modifiers)
Create a listener which will delegate to
listener only if
key is the target key. |
Constructor and Description |
---|
ShortcutEvent(Component source,
Component lifecycleOwner,
Key key,
Set<KeyModifier> keyModifiers)
Creates a new
ShortcutEvent . |
Modifier and Type | Method and Description |
---|---|
Set<KeyModifier> |
KeyboardEvent.getModifiers()
Gets the set of
KeyModifier of the event. |
Copyright © 2020. All rights reserved.