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 |
---|---|
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. |
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. |
Modifier and Type | Method and Description |
---|---|
Set<KeyModifier> |
KeyboardEvent.getModifiers()
Gets the set of
KeyModifier of the event. |
Copyright © 2018. All rights reserved.