mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-04-13 20:43:08 +08:00
Fixes typo per #1841
This commit is contained in:
parent
eefd2a801c
commit
f5527aed5d
@ -27,7 +27,7 @@ class PhysicalKeyboard {
|
||||
handleHighlightKeyDown(e: KeyboardEvent) {
|
||||
const options = this.getOptions();
|
||||
|
||||
if(options.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(e)){
|
||||
if(options.physicalKeyboardHighlightPreventDefault && this.isModifierKey(e)){
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
@ -93,7 +93,7 @@ class PhysicalKeyboard {
|
||||
handleHighlightKeyUp(e: KeyboardEvent) {
|
||||
const options = this.getOptions();
|
||||
|
||||
if(options.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(e)){
|
||||
if(options.physicalKeyboardHighlightPreventDefault && this.isModifierKey(e)){
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
}
|
||||
@ -260,7 +260,7 @@ class PhysicalKeyboard {
|
||||
}[keyCode] || "";
|
||||
}
|
||||
|
||||
isMofifierKey = (e: KeyboardEvent): boolean => {
|
||||
isModifierKey = (e: KeyboardEvent): boolean => {
|
||||
return (
|
||||
e.altKey
|
||||
|| e.ctrlKey
|
||||
|
Loading…
x
Reference in New Issue
Block a user