simple-keyboard 3.5.12 → 3.5.13

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(event: KeyboardEvent): void;
13
- handleHighlightKeyUp(event: KeyboardEvent): void;
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} event The KeyboardEvent
16
+ * @param {object} e The KeyboardEvent
17
17
  */
18
- getSimpleKeyboardLayoutKey(event: KeyboardEvent): string;
18
+ getSimpleKeyboardLayoutKey(e: KeyboardEvent): string;
19
19
  /**
20
20
  * Retrieve key from keyCode
21
21
  */
22
- keyCodeToKey(keyCode: number): string | undefined;
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.12",
3
+ "version": "3.5.13",
4
4
  "description": "On-screen Javascript Virtual Keyboard",
5
5
  "main": "build/index.js",
6
6
  "scripts": {