com.vaadin.flow.component.

Class KeyUpEvent

    • Constructor Detail

      • KeyUpEvent

        public KeyUpEvent(Component source,
                          boolean fromClient,
                          @EventData(value="event.key")
                          String key,
                          @EventData(value="event.location")
                          int location,
                          @EventData(value="event.ctrlKey")
                          boolean ctrlKey,
                          @EventData(value="event.shiftKey")
                          boolean shiftKey,
                          @EventData(value="event.altKey")
                          boolean altKey,
                          @EventData(value="event.metaKey")
                          boolean metaKey,
                          @EventData(value="event.repeat")
                          boolean repeat,
                          @EventData(value="event.isComposing")
                          boolean composing)

        Creates a new keyboard event.

        Parameters:

        source - the component that fired the event

        fromClient - true if the event was originally fired on the client, false if the event originates from server-side logic

        key - the string value representing the key

        location - the integer value representing the location of the key

        ctrlKey - true if the control key was down when the event was fired, false otherwise

        shiftKey - true if the shift key was down when the event was fired, false otherwise

        altKey - true if the alt key was down when the event was fired, false otherwise

        metaKey - true if the meta key was down when the event was fired, false otherwise

        repeat - true if the key has been pressed in a sustained manner

        composing - true if the key event occurred as part of a composition session

      • KeyUpEvent

        public KeyUpEvent(Component source,
                          String key)

        Creates a new server-side keyboard event with no additional information.

        Parameters:

        source - the component that fired the event

        key - the key for this event