I have a small problem. The shortkey (plugin) cannot be executed on the buttons once textarea has focus.
… => Non-relevant content
<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 methods never executed when you are focused. Does anybody have a solution?
I want to execute confirm method if you click ‘alt’ and ‘enter’, even focused on textarea.
I want to execute abort method if you click ‘esc’, even focused on textarea.