From 72e0e2e97eff0c1b96b7fa32a5eca30f70dc4630 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:57:21 +0100 Subject: [PATCH] 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> --- .changeset/lovely-hairs-push.md | 5 +++++ packages/core/src/composables/useKeyPress.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/lovely-hairs-push.md diff --git a/.changeset/lovely-hairs-push.md b/.changeset/lovely-hairs-push.md new file mode 100644 index 00000000..f0c12a41 --- /dev/null +++ b/.changeset/lovely-hairs-push.md @@ -0,0 +1,5 @@ +--- +"@vue-flow/core": patch +--- + +Set `isPressed` to `true` if permanent keypress is enabled diff --git a/packages/core/src/composables/useKeyPress.ts b/packages/core/src/composables/useKeyPress.ts index 0f776d9d..02cd4e8f 100644 --- a/packages/core/src/composables/useKeyPress.ts +++ b/packages/core/src/composables/useKeyPress.ts @@ -146,7 +146,7 @@ export function useKeyPress(keyFilter: MaybeRefOrGetter