@@ -2699,7 +2699,7 @@ class KeyboardEvent(typeArg: String, keyboardEventInit: KeyboardEventInit)
2699
2699
2700
2700
/**
2701
2701
* The location of the key on the keyboard or other input device.
2702
- * See the constants in the KeyboardEvent object.
2702
+ * See the constants in the [[ KeyboardEvent ]] object.
2703
2703
*
2704
2704
* MDN
2705
2705
*/
@@ -2771,17 +2771,55 @@ trait KeyboardEventInit extends js.Object {
2771
2771
@ js.native
2772
2772
@ JSGlobal
2773
2773
object KeyboardEvent extends js.Object {
2774
- def DOM_KEY_LOCATION_RIGHT : Int = js.native
2775
2774
2775
+ /**
2776
+ * The key has only one version, or can't be distinguished between the left
2777
+ * and right versions of the key, and was not pressed on the numeric keypad
2778
+ * or a key that is considered to be part of the keypad.
2779
+ *
2780
+ * MDN
2781
+ */
2776
2782
def DOM_KEY_LOCATION_STANDARD : Int = js.native
2777
2783
2784
+ /**
2785
+ * The key was the left-hand version of the key; for example, the left-hand
2786
+ * Control key was pressed on a standard 101 key US keyboard. This value is
2787
+ * only used for keys that have more that one possible location on the
2788
+ * keyboard.
2789
+ *
2790
+ * MDN
2791
+ */
2778
2792
def DOM_KEY_LOCATION_LEFT : Int = js.native
2779
2793
2780
- def DOM_KEY_LOCATION_NUMPAD : Int = js.native
2781
-
2782
- def DOM_KEY_LOCATION_JOYSTICK : Int = js.native
2794
+ /**
2795
+ * The key was the right-hand version of the key; for example, the right-hand
2796
+ * Control key is pressed on a standard 101 key US keyboard. This value is
2797
+ * only used for keys that have more that one possible location on the
2798
+ * keyboard.
2799
+ *
2800
+ * MDN
2801
+ */
2802
+ def DOM_KEY_LOCATION_RIGHT : Int = js.native
2783
2803
2784
- def DOM_KEY_LOCATION_MOBILE : Int = js.native
2804
+ /**
2805
+ * The key was on the numeric keypad, or has a virtual key code that
2806
+ * corresponds to the numeric keypad.
2807
+ *
2808
+ * @note When NumLock is locked, Gecko always returns
2809
+ * [[DOM_KEY_LOCATION_NUMPAD ]] for the keys on the numeric pad.
2810
+ * Otherwise, when NumLock is unlocked and the keyboard actually has
2811
+ * a numeric keypad, Gecko always returns [[DOM_KEY_LOCATION_NUMPAD ]]
2812
+ * too. On the other hand, if the keyboard doesn't have a keypad, such
2813
+ * as on a notebook computer, some keys become Numpad only when NumLock
2814
+ * is locked. When such keys fires key events, the location attribute
2815
+ * value depends on the key. That is, it must not be
2816
+ * [[DOM_KEY_LOCATION_NUMPAD ]].
2817
+ * @note NumLock key's key events indicate [[DOM_KEY_LOCATION_STANDARD ]] both
2818
+ * on Gecko and Internet Explorer.
2819
+ *
2820
+ * MDN
2821
+ */
2822
+ def DOM_KEY_LOCATION_NUMPAD : Int = js.native
2785
2823
}
2786
2824
2787
2825
/**
0 commit comments