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:
@@ -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