Interface KeyListener
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
KeyAdapter
An interface combining all 3 type of key events; PRESS, DOWN, UP
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionvoidkeyDown(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is DOWN.voidkeyPress(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is PRESSED.voidkeyUp(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is UP.
-
Method Details
-
keyPress
void keyPress(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is PRESSED. Equivalent tojava.awt.event.KeyListener.keyDown()- Parameters:
e- the event to be processed
-
keyDown
void keyDown(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is DOWN. Equivalent tojava.awt.event.KeyListener.keyPressed()- Parameters:
e- the event to be processed
-
keyUp
void keyUp(com.vaadin.flow.component.internal.KeyboardEvent e) Invoked when a key is UP. Equivalent tojava.awt.event.KeyListener.keyReleased()- Parameters:
e- the event to be processed
-