Interface Action.ShortcutNotifier

All Superinterfaces:
Serializable
Enclosing class:
Action

public static interface Action.ShortcutNotifier extends Serializable
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    addShortcutListener(com.vaadin.flow.component.ShortcutEventListener shortcut)
    Add a shortcut listener and return a registration object for unregistering it.
    void
    removeShortcutListener(com.vaadin.flow.component.ShortcutEventListener shortcut)
    Deprecated.
    As of 8.0, replaced by Registration.remove() in the registration object returned from addShortcutListener(ShortcutEventListener).
  • Method Details

    • addShortcutListener

      com.vaadin.flow.shared.Registration addShortcutListener(com.vaadin.flow.component.ShortcutEventListener shortcut)
      Add a shortcut listener and return a registration object for unregistering it.
      Parameters:
      shortcut - listener to add
      Returns:
      registration for unregistering the listener
      Since:
      8.0
    • removeShortcutListener

      @Deprecated void removeShortcutListener(com.vaadin.flow.component.ShortcutEventListener shortcut)
      Deprecated.
      As of 8.0, replaced by Registration.remove() in the registration object returned from addShortcutListener(ShortcutEventListener).