Search completed in 1.19 seconds.
3 results for "dom_key_location_standard":
KeyboardEvent - Web APIs
Web › API › KeyboardEvent
ne="middle">KeyboardEvent</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Constructor KeyboardEvent() Creates a new KeyboardEvent object. Constants The KeyboardEvent interface defines the following constants. Keyboard locations The following constants identify which part of the keyboard the key event originates from. ...
...eyboardEvent() Creates a new KeyboardEvent object. Constants The KeyboardEvent interface defines the following constants. Keyboard locations The following constants identify which part of the keyboard the key event originates from. They are accessed as KeyboardEvent.DOM_KEY_LOCATION_STANDARD and so forth. Keyboard location identifiers Constant Value Description DOM_KEY_LOCATION_STANDARD 0x00 The key described by the event is not identified as being located in a particular area of the keyboard; it is not located on the numeric keypad (unless it's the NumLock key), and for keys that are duplicated on the left and right sides of the keyboard, the key is, for whatever reason, not to be associated with that location. Examples include alphanumeric keys on the standard ...
... keyboard. Examples include the right Shift key and the right Alt key (Option on a Mac keyboard). DOM_KEY_LOCATION_NUMPAD 0x03 The key is located on the numeric keypad, or is a virtual key associated with the numeric keypad if there's more than one place the key could originate from. The NumLock key does not fall into this group and is always encoded with the location DOM_KEY_LOCATION_STANDARD. Examples include the digits on the numeric keypad, the keypad's Enter key, and the decimal point on the keypad. Properties This interface also inherits properties of its parents, UIEvent and Event. KeyboardEvent.altKey Read only Returns a Boolean that is true if the Alt ( Option or ? on OS X) key was active when the key event was generated. KeyboardEvent.code Read only ...
KeyboardEvent.location - Web APIs
Web › API › KeyboardEvent › location
The KeyboardEvent.location read-only property returns an unsigned long representing the location of the key on the keyboard or other input device. Possible values are: Constant Value Description DOM_KEY_LOCATION_STANDARD 0 The key has only one version, or can't be distinguished between the left and right versions of the key, and was not pressed on the numeric keypad or a key that is considered to be part of the keypad. DOM_KEY_LOCATION_LEFT 1 The key was the left-hand version of the key; for example, the left-hand Control key was pressed on a standard 101 key US keyboard. This value is only used for keys that have more than one possible location on the keyboard. DOM_KEY_LOCATION_RIGHT 2 The key was the right-hand version of the key; for example, the ri...
...actually has a numeric keypad, Gecko always returns DOM_KEY_LOCATION_NUMPAD too. On the other hand, if the keyboard doesn't have a keypad, such as on a notebook computer, some keys become Numpad only when NumLock is locked. When such keys fires key events, the location attribute value depends on the key. That is, it must not be DOM_KEY_LOCATION_NUMPAD. Note: NumLock key's key events indicate DOM_KEY_LOCATION_STANDARD both on Gecko and Internet Explorer. DOM_KEY_LOCATION_MOBILE Obsolete since Gecko 38 4 The key was on a mobile device; this can be on either a physical keypad or a virtual keyboard. Note: Gecko always returns DOM_KEY_LOCATION_MOBILE on Android (Prior to 18) and Maemo. However, at Gecko 38, this is dropped. DOM_KEY_LOCATION_JOYSTICK Obsolete since Gecko ...
nsIDOMWindowUtils
Mozilla › Tech › XPCOM › Reference › Interface › nsIDOMWindowUtils
d*Event() except sendNative*Event(). KEY_FLAG_PREVENT_DEFAULT 0x0001 getDefaultPrevented() returns true if this is specified to aAdditionalFlags of sendKeyEvent(). Deprecated since Gecko 38.0 KEY_FLAG_NOT_SYNTHESIZED_FOR_TESTS 0x0002 KEY_FLAG_LOCATION_STANDARD 0x0010 location attrubute of the sending key event by sendKeyEvent() returns KeyboardEvent.DOM_KEY_LOCATION_STANDARD if this is specified to the aAdditionalFlags. Deprecated since Gecko 38.0 KEY_FLAG_LOCATION_LEFT 0x0020 location attrubute of the sending key event by sendKeyEvent() returns KeyboardEvent.DOM_KEY_LOCATION_LEFT if this is specified to the aAdditionalFlags. Deprecated since Gecko 38.0 KEY_FLAG_LOCATION_RIGHT 0x0040 location attrubute of the sending key event by sendKey...