From e4360abed92064f83c0bc21d80ec173d0fbfd5da Mon Sep 17 00:00:00 2001 From: John Alden Date: Tue, 2 Jul 2024 12:48:38 -0700 Subject: [PATCH] re-dispatch to event currentTarget path is a non-standard property that was removed in chromium 110 causing this code to throw errors when encountered. the whatwg dom spec lists it's replacement, composedPath(), as having the first element alwasy be currentTarget so just use that instead. --- src/keymap-manager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keymap-manager.coffee b/src/keymap-manager.coffee index 240682d..320f02f 100644 --- a/src/keymap-manager.coffee +++ b/src/keymap-manager.coffee @@ -502,7 +502,7 @@ class KeymapManager if character = characterForKeyboardEvent(keydownEvent) textInputEvent = document.createEvent("TextEvent") textInputEvent.initTextEvent("textInput", true, true, window, character) - keydownEvent.path[0].dispatchEvent(textInputEvent) + keydownEvent.currentTarget.dispatchEvent(textInputEvent) # For testing purposes getOtherPlatforms: -> OtherPlatforms