Skip to content

Commit cb65af4

Browse files
committed
Reformat files
1 parent 0df2208 commit cb65af4

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed

src/main/scala/org/scalajs/dom/ext/Extensions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ object KeyCode {
231231
/** Aliases for DOM_KEY_LOCATION_* constants from [[KeyboardEvent]] */
232232
object KeyLocation {
233233
final val Standard = KeyboardEvent.DOM_KEY_LOCATION_STANDARD
234-
final val Left = KeyboardEvent.DOM_KEY_LOCATION_LEFT
235-
final val Right = KeyboardEvent.DOM_KEY_LOCATION_RIGHT
236-
final val NumPad = KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
234+
final val Left = KeyboardEvent.DOM_KEY_LOCATION_LEFT
235+
final val Right = KeyboardEvent.DOM_KEY_LOCATION_RIGHT
236+
final val NumPad = KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
237237
}
238238

239239
/**

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,53 +2742,54 @@ trait KeyboardEventInit extends js.Object {
27422742
@js.native
27432743
@JSGlobal
27442744
object KeyboardEvent extends js.Object {
2745+
27452746
/**
2746-
* The key has only one version, or can't be distinguished between the left
2747-
* and right versions of the key, and was not pressed on the numeric keypad
2748-
* or a key that is considered to be part of the keypad.
2749-
*
2750-
* MDN
2751-
*/
2747+
* The key has only one version, or can't be distinguished between the left
2748+
* and right versions of the key, and was not pressed on the numeric keypad
2749+
* or a key that is considered to be part of the keypad.
2750+
*
2751+
* MDN
2752+
*/
27522753
def DOM_KEY_LOCATION_STANDARD: Int = js.native
27532754

27542755
/**
2755-
* The key was the left-hand version of the key; for example, the left-hand
2756-
* Control key was pressed on a standard 101 key US keyboard. This value is
2757-
* only used for keys that have more that one possible location on the
2758-
* keyboard.
2759-
*
2760-
* MDN
2761-
*/
2756+
* The key was the left-hand version of the key; for example, the left-hand
2757+
* Control key was pressed on a standard 101 key US keyboard. This value is
2758+
* only used for keys that have more that one possible location on the
2759+
* keyboard.
2760+
*
2761+
* MDN
2762+
*/
27622763
def DOM_KEY_LOCATION_LEFT: Int = js.native
27632764

27642765
/**
2765-
* The key was the right-hand version of the key; for example, the right-hand
2766-
* Control key is pressed on a standard 101 key US keyboard. This value is
2767-
* only used for keys that have more that one possible location on the
2768-
* keyboard.
2769-
*
2770-
* MDN
2771-
*/
2766+
* The key was the right-hand version of the key; for example, the right-hand
2767+
* Control key is pressed on a standard 101 key US keyboard. This value is
2768+
* only used for keys that have more that one possible location on the
2769+
* keyboard.
2770+
*
2771+
* MDN
2772+
*/
27722773
def DOM_KEY_LOCATION_RIGHT: Int = js.native
27732774

27742775
/**
2775-
* The key was on the numeric keypad, or has a virtual key code that
2776-
* corresponds to the numeric keypad.
2777-
*
2778-
* @note When NumLock is locked, Gecko always returns
2779-
* [[DOM_KEY_LOCATION_NUMPAD]] for the keys on the numeric pad.
2780-
* Otherwise, when NumLock is unlocked and the keyboard actually has
2781-
* a numeric keypad, Gecko always returns [[DOM_KEY_LOCATION_NUMPAD]]
2782-
* too. On the other hand, if the keyboard doesn't have a keypad, such
2783-
* as on a notebook computer, some keys become Numpad only when NumLock
2784-
* is locked. When such keys fires key events, the location attribute
2785-
* value depends on the key. That is, it must not be
2786-
* [[DOM_KEY_LOCATION_NUMPAD]].
2787-
* @note NumLock key's key events indicate [[DOM_KEY_LOCATION_STANDARD]] both
2788-
* on Gecko and Internet Explorer.
2789-
*
2790-
* MDN
2791-
*/
2776+
* The key was on the numeric keypad, or has a virtual key code that
2777+
* corresponds to the numeric keypad.
2778+
*
2779+
* @note When NumLock is locked, Gecko always returns
2780+
* [[DOM_KEY_LOCATION_NUMPAD]] for the keys on the numeric pad.
2781+
* Otherwise, when NumLock is unlocked and the keyboard actually has
2782+
* a numeric keypad, Gecko always returns [[DOM_KEY_LOCATION_NUMPAD]]
2783+
* too. On the other hand, if the keyboard doesn't have a keypad, such
2784+
* as on a notebook computer, some keys become Numpad only when NumLock
2785+
* is locked. When such keys fires key events, the location attribute
2786+
* value depends on the key. That is, it must not be
2787+
* [[DOM_KEY_LOCATION_NUMPAD]].
2788+
* @note NumLock key's key events indicate [[DOM_KEY_LOCATION_STANDARD]] both
2789+
* on Gecko and Internet Explorer.
2790+
*
2791+
* MDN
2792+
*/
27922793
def DOM_KEY_LOCATION_NUMPAD: Int = js.native
27932794
}
27942795

0 commit comments

Comments
 (0)