Skip to content

Commit

Permalink
fix(event): use event.target (not sure why it is broken now)
Browse files Browse the repository at this point in the history
fallback to default behavior for unmatched keystrokes
  • Loading branch information
craftzdog committed Oct 25, 2023
1 parent 14dfd50 commit 2673e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keymap-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ module.exports = KeymapManager = (function () {
if ((character = characterForKeyboardEvent(keydownEvent))) {
const textInputEvent = document.createEvent('TextEvent')
textInputEvent.initTextEvent('textInput', true, true, window, character)
return keydownEvent.path[0].dispatchEvent(textInputEvent)
return keydownEvent.target.dispatchEvent(textInputEvent)
}
}

Expand Down

0 comments on commit 2673e30

Please sign in to comment.