Build update

This commit is contained in:
Francisco Hodge 2019-06-02 03:04:55 -04:00
parent 8795232092
commit b490481761
7 changed files with 27 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/*!
*
* simple-keyboard v2.21.4
* simple-keyboard v2.22.0
* https://github.com/hodgef/simple-keyboard
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef)

File diff suppressed because one or more lines are too long

View File

@ -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
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef)

5
build/index.d.ts vendored
View File

@ -220,6 +220,11 @@ declare module 'simple-keyboard' {
* @param {string} button The button layout name to select
*/
getButtonElement(button: string): HTMLElement | HTMLElement[];
/**
* Clears keyboard listeners and DOM elements.
*/
destroy(): void;
}
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

View File

@ -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
*
* 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} 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 {function} destroy Clears keyboard listeners and DOM elements.
*/ this.options = options;
this.options.layoutName = this.options.layoutName || "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
*/ }, {
key: "getButtonTheme",