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 13:57:21 +01:00
parent 900850d3ae
commit 72e0e2e97e
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Set `isPressed` to `true` if permanent keypress is enabled

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) {