Interface KeyListener

All Superinterfaces:
Serializable
All Known Implementing Classes:
KeyAdapter

public interface KeyListener extends Serializable
An interface combining all 3 type of key events; PRESS, DOWN, UP
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    keyDown(com.vaadin.flow.component.internal.KeyboardEvent e)
    Invoked when a key is DOWN.
    void
    keyPress(com.vaadin.flow.component.internal.KeyboardEvent e)
    Invoked when a key is PRESSED.
    void
    keyUp(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 to java.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 to java.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 to java.awt.event.KeyListener.keyReleased()
      Parameters:
      e - the event to be processed