From f5527aed5d55146fceb9154ed063f96032116d8a Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Mon, 4 Mar 2024 20:44:29 -0500 Subject: [PATCH] Fixes typo per #1841 --- src/lib/services/PhysicalKeyboard.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/services/PhysicalKeyboard.ts b/src/lib/services/PhysicalKeyboard.ts index 2aa287b8..3cb83783 100644 --- a/src/lib/services/PhysicalKeyboard.ts +++ b/src/lib/services/PhysicalKeyboard.ts @@ -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