mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
fix: use KeyboardEvent key
instead of code
This commit is contained in:
parent
d7c25df7b0
commit
20d069cff2
1 changed files with 1 additions and 1 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue