Ensure button handler is triggered on physicalKeyboardHighlightPress. Per https://github.com/hodgef/react-simple-keyboard/issues/1386

This commit is contained in:
Francisco Hodge
2021-07-30 22:23:51 -07:00
parent cc61947fc0
commit ed2c5ce81d
2 changed files with 29 additions and 5 deletions
+8 -1
View File
@@ -136,10 +136,17 @@ export interface KeyboardOptions {
physicalKeyboardHighlight?: boolean;
/**
* Presses keys highlighted by physicalKeyboardHighlight
* Calls handler for a button highlighted by physicalKeyboardHighlight
* In other words, this calls keyboard.handleButtonClicked(buttonName) on the highlighted button
*/
physicalKeyboardHighlightPress?: boolean;
/**
* Trigger click on a button's element when using physicalKeyboardHighlightPress
* In other words, this calls button.click() on the highlighted button
*/
physicalKeyboardHighlightPressUseClick?: boolean;
/**
* Define the text color that the physical keyboard highlighted key should have.
*/