From 20d069cff27ad73b0e164710987e6af64c15c3bd Mon Sep 17 00:00:00 2001 From: Kenyi Watanabe <45218102+kehwar@users.noreply.github.com> Date: Fri, 8 Mar 2024 00:44:46 -0500 Subject: [PATCH] fix: use KeyboardEvent `key` instead of `code` --- components/lib/terminal/Terminal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/terminal/Terminal.vue b/components/lib/terminal/Terminal.vue index f1ad448f4..d9a3e1855 100755 --- a/components/lib/terminal/Terminal.vue +++ b/components/lib/terminal/Terminal.vue @@ -44,7 +44,7 @@ export default { this.$refs.input.focus(); }, onKeydown(event) { - if ((event.code === 'Enter' || event.code === 'NumpadEnter') && this.commandText) { + if (event.key === 'Enter' && this.commandText) { this.commands.push({ text: this.commandText }); TerminalService.emit('command', this.commandText); this.commandText = '';