Skip to content

Commit 0cfb75d

Browse files
authored
Update dependencies and fix keyboard shortcut issues (#115)
* Update dependencies Signed-off-by: Axel Boberg <git@axelboberg.se> * Fix an issue where keyboard triggers would be triggered while a text input was the input target Signed-off-by: Axel Boberg <git@axelboberg.se> --------- Signed-off-by: Axel Boberg <git@axelboberg.se>
1 parent abc1d0d commit 0cfb75d

2 files changed

Lines changed: 34 additions & 26 deletions

File tree

app/utils/shortcuts.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@ function dispatchSimulatedEvent (e) {
238238
return
239239
}
240240

241+
/*
242+
Don't listen to keyboard events
243+
if the target is an input
244+
*/
245+
if (['INPUT', 'TEXTAREA'].includes(e?.target?.nodeName)) {
246+
return
247+
}
248+
241249
const simulatedEvent = new KeyboardEvent(e.type, {
242250
key: e.key,
243251
code: e.code,

package-lock.json

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)