mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-30 06:19:01 +00:00
fix: keybinds overriding forms
This commit is contained in:
parent
75e819f6ae
commit
541dc831e6
1 changed files with 4 additions and 2 deletions
|
|
@ -182,7 +182,9 @@ function navigateDPad (direction = 'up') {
|
|||
// hacky, but make sure keybinds system loads first so it can prevent this from running
|
||||
queueMicrotask(() => {
|
||||
document.addEventListener('keydown', e => {
|
||||
e.preventDefault()
|
||||
if (DirectionKeyMap[e.key]) navigateDPad(DirectionKeyMap[e.key])
|
||||
if (DirectionKeyMap[e.key]) {
|
||||
e.preventDefault()
|
||||
navigateDPad(DirectionKeyMap[e.key])
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue