0👍
✅
Just change
<textarea
id="terminal"
autocorrect="off"
spellcheck="false"
@click.prevent
@keydown.prevent="handleKey"
></textarea>
To the following. so you dont block the input or you will have to handle it manualy
<textarea
id="terminal"
autocorrect="off"
spellcheck="false"
@click.prevent
@keydown="handleKey"
></textarea>
And in the event handler prevent it (stop the propagation) by call. In this case
handleKey(event) {
...
event.stopPropagation()
}
Source:stackexchange.com