File tree 1 file changed +9
-1
lines changed
src/main/scala/org/scalajs/dom/ext
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import scala.scalajs.js.typedarray.TypedArrayBufferOps._
11
11
12
12
import org .scalajs .dom
13
13
import org .scalajs .dom .{FormData , html , raw }
14
- import org .scalajs .dom .raw .Blob
14
+ import org .scalajs .dom .raw .{ Blob , KeyboardEvent }
15
15
16
16
/**
17
17
* Used to extend out javascript *Collections to make them usable as normal
@@ -228,6 +228,14 @@ object KeyCode {
228
228
// format: on
229
229
}
230
230
231
+ /** Aliases for DOM_KEY_LOCATION_* constants from [[KeyboardEvent ]] */
232
+ object KeyLocation {
233
+ 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
237
+ }
238
+
231
239
/**
232
240
* Thrown when `Ajax.get` or `Ajax.post` receives a non-20X response code.
233
241
* Contains the XMLHttpRequest that resulted in that response
You can’t perform that action at this time.
0 commit comments