diff --git a/components/lib/terminal/Terminal.vue b/components/lib/terminal/Terminal.vue index f1ad448f40..d9a3e18553 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 = '';