mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-05-07 06:22:55 +08:00
Merge pull request #307 from hodgef/hodgef-patch-1
Adding stopMouseDownPropagation to types
This commit is contained in:
commit
0571fb7780
5
src/lib/@types/index.d.ts
vendored
5
src/lib/@types/index.d.ts
vendored
@ -94,6 +94,11 @@ declare module 'simple-keyboard' {
|
|||||||
*/
|
*/
|
||||||
preventMouseDownDefault?: boolean;
|
preventMouseDownDefault?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stops pointer down events on simple-keyboard buttons from bubbling to parent elements.
|
||||||
|
*/
|
||||||
|
stopMouseDownPropagation?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define the text color that the physical keyboard highlighted key should have.
|
* Define the text color that the physical keyboard highlighted key should have.
|
||||||
*/
|
*/
|
||||||
|
@ -61,6 +61,7 @@ class SimpleKeyboard {
|
|||||||
* @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.
|
* @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.
|
||||||
* @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.
|
* @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.
|
||||||
* @property {boolean} preventMouseDownDefault Calling preventDefault for the mousedown events keeps the focus on the input.
|
* @property {boolean} preventMouseDownDefault Calling preventDefault for the mousedown events keeps the focus on the input.
|
||||||
|
* @property {boolean} stopMouseDownPropagation Stops pointer down events on simple-keyboard buttons from bubbling to parent elements.
|
||||||
* @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.
|
* @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.
|
||||||
* @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have.
|
* @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have.
|
||||||
* @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).
|
* @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user