fix(core): set isPressed to true on blur and contextmenu events if permant keypress is enabled (#1667)

* fix(core): set isPressed to `true` on reset if permanent keypress is enabled

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

* chore(changeset): add

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>

---------

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2024-11-01 19:48:16 +01:00
parent 900850d3ae
commit 72e0e2e97e
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ export function useKeyPress(keyFilter: MaybeRefOrGetter<KeyFilter | boolean | nu
pressedKeys.clear()
isPressed.value = false
isPressed.value = toValue(keyFilter) === true
}
function createKeyFilterFn(keyFilter: KeyFilter | boolean | null) {