mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3602 - Keyboard support: Numpad enter
This commit is contained in:
parent
f887f97879
commit
e0de315cfc
38 changed files with 45 additions and 14 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue