simple-keyboard 3.5.12 → 3.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,16 +9,17 @@ declare class PhysicalKeyboard {
|
|
|
9
9
|
* Creates an instance of the PhysicalKeyboard service
|
|
10
10
|
*/
|
|
11
11
|
constructor({ dispatch, getOptions }: PhysicalKeyboardParams);
|
|
12
|
-
handleHighlightKeyDown(
|
|
13
|
-
handleHighlightKeyUp(
|
|
12
|
+
handleHighlightKeyDown(e: KeyboardEvent): void;
|
|
13
|
+
handleHighlightKeyUp(e: KeyboardEvent): void;
|
|
14
14
|
/**
|
|
15
15
|
* Transforms a KeyboardEvent's "key.code" string into a simple-keyboard layout format
|
|
16
|
-
* @param {object}
|
|
16
|
+
* @param {object} e The KeyboardEvent
|
|
17
17
|
*/
|
|
18
|
-
getSimpleKeyboardLayoutKey(
|
|
18
|
+
getSimpleKeyboardLayoutKey(e: KeyboardEvent): string;
|
|
19
19
|
/**
|
|
20
20
|
* Retrieve key from keyCode
|
|
21
21
|
*/
|
|
22
|
-
keyCodeToKey(keyCode: number): string
|
|
22
|
+
keyCodeToKey(keyCode: number): string;
|
|
23
|
+
isMofifierKey: (e: KeyboardEvent) => boolean;
|
|
23
24
|
}
|
|
24
25
|
export default PhysicalKeyboard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-keyboard",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.14",
|
|
4
4
|
"description": "On-screen Javascript Virtual Keyboard",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"babel-eslint": "^10.1.0",
|
|
53
53
|
"babel-loader": "^9.1.2",
|
|
54
54
|
"babel-preset-minify": "^0.5.2",
|
|
55
|
-
"core-js": "^3.27.
|
|
55
|
+
"core-js": "^3.27.2",
|
|
56
56
|
"css-loader": "^6.7.3",
|
|
57
57
|
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
58
58
|
"eslint": "^8.32.0",
|