simple-keyboard 3.5.18 → 3.5.19
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.
- package/build/css/index.css +1 -1
- package/build/index.js +2 -2
- package/build/index.modern.js +2 -2
- package/build/index.modern.js.map +1 -1
- package/build/interfaces.d.ts +8 -0
- package/package.json +1 -1
package/build/interfaces.d.ts
CHANGED
|
@@ -225,6 +225,14 @@ export interface KeyboardOptions {
|
|
|
225
225
|
* Retrieves all inputs
|
|
226
226
|
*/
|
|
227
227
|
onChangeAll?: (inputObj: KeyboardInput, e?: MouseEvent) => any;
|
|
228
|
+
/**
|
|
229
|
+
* Retrieves the pressed key
|
|
230
|
+
*/
|
|
231
|
+
onKeyPress?: (button: string, e?: MouseEvent) => any;
|
|
232
|
+
/**
|
|
233
|
+
* Retrieves the released key
|
|
234
|
+
*/
|
|
235
|
+
onKeyReleased?: (button: string, e?: MouseEvent) => any;
|
|
228
236
|
/**
|
|
229
237
|
* Module options can have any format
|
|
230
238
|
*/
|