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