mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +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
|
@ -83,7 +83,7 @@ export default {
|
|||
this.$refs.input.focus();
|
||||
},
|
||||
onKeyDown(event) {
|
||||
if (event.code === 'Enter') {
|
||||
if (event.code === 'Enter' || event.code === 'NumpadEnter') {
|
||||
this.updateModel();
|
||||
this.$emit('keydown', event);
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue