Fixed #3602 - Keyboard support: Numpad enter

This commit is contained in:
mertsincan 2023-12-20 10:45:43 +00:00
parent f887f97879
commit e0de315cfc
38 changed files with 45 additions and 14 deletions

View file

@ -43,7 +43,7 @@ export default {
this.$refs.input.focus();
},
onKeydown(event) {
if (event.code === 'Enter' && this.commandText) {
if ((event.code === 'Enter' || event.code === 'NumpadEnter') && this.commandText) {
this.commands.push({ text: this.commandText });
TerminalService.emit('command', this.commandText);
this.commandText = '';