Class NativeUIEvent

    • Method Detail

      • getDetail

        @JsProperty
        public final int getDetail()
        When non-zero, provides the current (or next, depending on the event) click count.
        For click events, is the current click count.
        For mousedown or mouseup events, is 1 plus the current click count.
        For all other, is always zero.
        Returns:
        When non-zero, provides the current (or next, depending on the event) click count.
        For click events, is the current click count.
        For mousedown or mouseup events, is 1 plus the current click count.
        For all other, is always zero
      • getModifierState

        @JsOverlay
        public final boolean getModifierState​(KeyboardModifierKey modifier)
        Returns the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.
        Parameters:
        modifier - a modifier key
        Returns:
        the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false