mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-05-19 00:00:07 +08:00
Adjust physicalKeyboardHighlightPreventDefault per #1841
This commit is contained in:
@@ -29,6 +29,7 @@ class PhysicalKeyboard {
|
||||
|
||||
if(options.physicalKeyboardHighlightPreventDefault){
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
const buttonPressed = this.getSimpleKeyboardLayoutKey(event);
|
||||
@@ -94,6 +95,7 @@ class PhysicalKeyboard {
|
||||
|
||||
if(options.physicalKeyboardHighlightPreventDefault){
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
const buttonPressed = this.getSimpleKeyboardLayoutKey(event);
|
||||
|
||||
Reference in New Issue
Block a user