mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-22 09:49:32 +08:00
Build update
This commit is contained in:
parent
8795232092
commit
b490481761
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
* simple-keyboard v2.21.4
|
* simple-keyboard v2.22.0
|
||||||
* https://github.com/hodgef/simple-keyboard
|
* https://github.com/hodgef/simple-keyboard
|
||||||
*
|
*
|
||||||
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
* simple-keyboard v2.21.4 (Non-minified build)
|
* simple-keyboard v2.22.0 (Non-minified build)
|
||||||
* https://github.com/hodgef/simple-keyboard
|
* https://github.com/hodgef/simple-keyboard
|
||||||
*
|
*
|
||||||
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
|
||||||
|
5
build/index.d.ts
vendored
5
build/index.d.ts
vendored
@ -220,6 +220,11 @@ declare module 'simple-keyboard' {
|
|||||||
* @param {string} button The button layout name to select
|
* @param {string} button The button layout name to select
|
||||||
*/
|
*/
|
||||||
getButtonElement(button: string): HTMLElement | HTMLElement[];
|
getButtonElement(button: string): HTMLElement | HTMLElement[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears keyboard listeners and DOM elements.
|
||||||
|
*/
|
||||||
|
destroy(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Keyboard;
|
export default Keyboard;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
* simple-keyboard v2.21.4 (Non-minified build)
|
* simple-keyboard v2.22.0 (Non-minified build)
|
||||||
* https://github.com/hodgef/simple-keyboard
|
* https://github.com/hodgef/simple-keyboard
|
||||||
*
|
*
|
||||||
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef)
|
||||||
@ -823,6 +823,7 @@
|
|||||||
* @property {boolean} useTouchEvents Instructs simple-keyboard to use touch events instead of click events.
|
* @property {boolean} useTouchEvents Instructs simple-keyboard to use touch events instead of click events.
|
||||||
* @property {boolean} autoUseTouchEvents Enable useTouchEvents automatically when touch device is detected.
|
* @property {boolean} autoUseTouchEvents Enable useTouchEvents automatically when touch device is detected.
|
||||||
* @property {boolean} useMouseEvents Opt out of PointerEvents handling, falling back to the prior mouse event logic.
|
* @property {boolean} useMouseEvents Opt out of PointerEvents handling, falling back to the prior mouse event logic.
|
||||||
|
* @property {function} destroy Clears keyboard listeners and DOM elements.
|
||||||
*/ this.options = options;
|
*/ this.options = options;
|
||||||
this.options.layoutName = this.options.layoutName || "default";
|
this.options.layoutName = this.options.layoutName || "default";
|
||||||
this.options.theme = this.options.theme || "hg-theme-default";
|
this.options.theme = this.options.theme || "hg-theme-default";
|
||||||
@ -1294,6 +1295,20 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
* Destroy keyboard listeners and DOM elements
|
||||||
|
*/ }, {
|
||||||
|
key: "destroy",
|
||||||
|
value: function destroy() {
|
||||||
|
/**
|
||||||
|
* Remove listeners
|
||||||
|
*/ document.removeEventListener("keyup", this.caretEventHandler);
|
||||||
|
document.removeEventListener("mouseup", this.caretEventHandler);
|
||||||
|
document.removeEventListener("touchend", this.caretEventHandler);
|
||||||
|
/**
|
||||||
|
* Clear DOM
|
||||||
|
*/ this.clear();
|
||||||
|
}
|
||||||
|
/**
|
||||||
* Process buttonTheme option
|
* Process buttonTheme option
|
||||||
*/ }, {
|
*/ }, {
|
||||||
key: "getButtonTheme",
|
key: "getButtonTheme",
|
||||||
|
Loading…
Reference in New Issue
Block a user