You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to use this logic to create shortcut of " ? " when we press " ? " outside the textarea something like that. But It doesn't seem work for me using this logic. Can someone help me ?
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
I am creating the shortcut using useMagicKeys() and useActiveElement() from vueuse;
const activeElement = useActiveElement();
const notUsingInput = computed(
() =>
activeElement.value?.tagName !== 'INPUT' &&
activeElement.value?.tagName !== 'TEXTAREA',
);
const keys = useMagicKeys();
const questionMarkPressed = keys['?'];
whenever(logicAnd(questionMarkPressed, notUsingInput), () => {
console.log("This is ? press outside the textarea");
});
i'm trying to use this logic to create shortcut of " ? " when we press " ? " outside the textarea something like that. But It doesn't seem work for me using this logic. Can someone help me ?
Reproduction
useMagicKeys() and useActiveElement()
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: