Having a minor issue here. The shortkey (plugin) doesn't work on the buttons when the textarea is in focus.
... => Not relevant information
<template>
<div>
<v-textarea ... />
<div>
<v-btn
v-shortkey="['esc']"
@shortkey="abort"
>
...
</v-btn>
<v-btn
v-shortcut="['alt', 'enter']"
@shortkey="confirm"
>
</v-btn>
</div>
</div>
</template>
<script>
methods: {
abort() {
console.log('aborted')
}
confirm() {
console.log('confirmed')
}
}
</script>
Both functions are not being triggered while the textarea is focused. Is there a solution to this?
I need the confirm method to run when 'alt' and 'enter' are clicked, even if the textarea has focus. I need the abort method to run when 'esc' is clicked, even if the textarea has focus.