com.aspose.html.dom.events

Class KeyboardEvent.KeyboardEventInit

  • All Implemented Interfaces:
    com.aspose.html.internal.ms.System.Collections.Generic.IGenericCollection<com.aspose.html.internal.ms.System.Collections.Generic.KeyValuePair<String,Object>>, com.aspose.html.internal.ms.System.Collections.Generic.IGenericDictionary<String,Object>, com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.html.internal.ms.System.Collections.Generic.KeyValuePair<String,Object>>, com.aspose.html.internal.ms.System.Collections.IEnumerable<com.aspose.html.internal.ms.System.Collections.Generic.KeyValuePair<String,Object>>, Iterable<com.aspose.html.internal.ms.System.Collections.Generic.KeyValuePair<String,Object>>
    Enclosing class:
    KeyboardEvent


    public class KeyboardEvent.KeyboardEventInit
    extends UIEvent.EventModifierInit

    Represents a dictionary that is having optional arguments for setting the details information about the event.

    • Constructor Detail

      • KeyboardEventInit

        public KeyboardEventInit()
    • Method Detail

      • getKey

        public String getKey()

        The key holds the key value of the key pressed. If the value is has a printed representation, it MUST be a non-empty Unicode character string, conforming to the algorithm for determining the key value defined in this specification. If the value is a control key which has no printed representation, it MUST be one of the key values defined in the key values set, as determined by the algorithm for determining the key value. Implementations that are unable to identify a key MUST use the key value Unidentified.

        Value: The key value.
      • setKey

        public void setKey(String value)

        The key holds the key value of the key pressed. If the value is has a printed representation, it MUST be a non-empty Unicode character string, conforming to the algorithm for determining the key value defined in this specification. If the value is a control key which has no printed representation, it MUST be one of the key values defined in the key values set, as determined by the algorithm for determining the key value. Implementations that are unable to identify a key MUST use the key value Unidentified.

        Value: The key value.
      • getCode

        public String getCode()

        The code holds a string that identifies the physical key being pressed. The value is not affected by the current keyboard layout or modifier state, so a particular key will always return the same value.

        Value: The key code.
      • setCode

        public void setCode(String value)

        The code holds a string that identifies the physical key being pressed. The value is not affected by the current keyboard layout or modifier state, so a particular key will always return the same value.

        Value: The key code.
      • getLocation

        public long getLocation()

        The location attribute contains an indication of the logical location of the key on the device.

        Value: The location.
      • setLocation

        public void setLocation(long value)

        The location attribute contains an indication of the logical location of the key on the device.

        Value: The location.
      • getRepeat

        public boolean getRepeat()

        true if the key has been pressed in a sustained manner. Holding down a key MUST result in the repeating the events keydown, beforeinput, input in this order, at a rate determined by the system configuration. For mobile devices which have long-key-press behavior, the first key event with a repeat attribute value of true MUST serve as an indication of a long-key-press. The length of time that the key MUST be pressed in order to begin repeating is configuration-dependent.

        Value: true if repeat; otherwise, false.
      • setRepeat

        public void setRepeat(boolean value)

        true if the key has been pressed in a sustained manner. Holding down a key MUST result in the repeating the events keydown, beforeinput, input in this order, at a rate determined by the system configuration. For mobile devices which have long-key-press behavior, the first key event with a repeat attribute value of true MUST serve as an indication of a long-key-press. The length of time that the key MUST be pressed in order to begin repeating is configuration-dependent.

        Value: true if repeat; otherwise, false.
      • isComposing

        public boolean isComposing()

        true if the key event occurs as part of a composition session, i.e., after a compositionstart event and before the corresponding compositionend event. The un-initialized value of this attribute MUST be false.

        Value: true if this instance is composing; otherwise, false.
      • setComposing

        public void setComposing(boolean value)

        true if the key event occurs as part of a composition session, i.e., after a compositionstart event and before the corresponding compositionend event. The un-initialized value of this attribute MUST be false.

        Value: true if this instance is composing; otherwise, false.