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:
5
.changeset/lovely-hairs-push.md
Normal file
5
.changeset/lovely-hairs-push.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/core": patch
|
||||
---
|
||||
|
||||
Set `isPressed` to `true` if permanent keypress is enabled
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user