Class KeyEventListener<E extends KeyboardEvent>

    • Constructor Detail

      • KeyEventListener

        public KeyEventListener​(ComponentEventListener<E> listener,
                                Key key,
                                KeyModifier... modifiers)
        Create a listener which will delegate to listener only if key is the target key. If any modifiers is required, the delegation occurs only if all the modifiers keys where pressed.
        Parameters:
        listener - the listener to delegate
        key - the key to check
        modifiers - the optional modifier keys