diff --git a/components/lib/accordion/Accordion.vue b/components/lib/accordion/Accordion.vue index 2814f52dd..dfd54e2b5 100755 --- a/components/lib/accordion/Accordion.vue +++ b/components/lib/accordion/Accordion.vue @@ -144,6 +144,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onTabEnterKey(event, tab, index); break; diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 40e478f4b..340af3440 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -2185,6 +2185,7 @@ export default { } case 'Enter': + case 'NumpadEnter': case 'Space': { this.onDateSelect(event, date); @@ -2361,6 +2362,7 @@ export default { } case 'Enter': + case 'NumpadEnter': case 'Space': { this.onMonthSelect(event, index); @@ -2454,6 +2456,7 @@ export default { } case 'Enter': + case 'NumpadEnter': case 'Space': { this.onYearSelect(event, index); diff --git a/components/lib/cascadeselect/CascadeSelect.vue b/components/lib/cascadeselect/CascadeSelect.vue index 177ab275a..dd279da9a 100644 --- a/components/lib/cascadeselect/CascadeSelect.vue +++ b/components/lib/cascadeselect/CascadeSelect.vue @@ -243,6 +243,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/chips/Chips.vue b/components/lib/chips/Chips.vue index 598382cec..1f10dd96b 100755 --- a/components/lib/chips/Chips.vue +++ b/components/lib/chips/Chips.vue @@ -110,6 +110,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': if (inputValue && inputValue.trim().length && !this.maxedOut) { this.addItem(event, inputValue, true); } diff --git a/components/lib/confirmpopup/ConfirmPopup.vue b/components/lib/confirmpopup/ConfirmPopup.vue index 38d66076b..326b05882 100644 --- a/components/lib/confirmpopup/ConfirmPopup.vue +++ b/components/lib/confirmpopup/ConfirmPopup.vue @@ -152,14 +152,14 @@ export default { this.visible = false; }, onAcceptKeydown(event) { - if (event.code === 'Space' || event.code === 'Enter') { + if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') { this.accept(); DomHandler.focus(this.target); event.preventDefault(); } }, onRejectKeydown(event) { - if (event.code === 'Space' || event.code === 'Enter') { + if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') { this.reject(); DomHandler.focus(this.target); event.preventDefault(); diff --git a/components/lib/contextmenu/ContextMenu.vue b/components/lib/contextmenu/ContextMenu.vue index 905f04138..e07fc4d6c 100755 --- a/components/lib/contextmenu/ContextMenu.vue +++ b/components/lib/contextmenu/ContextMenu.vue @@ -181,6 +181,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/datatable/ColumnFilter.vue b/components/lib/datatable/ColumnFilter.vue index fb3ca3883..f3cc62ec0 100644 --- a/components/lib/datatable/ColumnFilter.vue +++ b/components/lib/datatable/ColumnFilter.vue @@ -402,6 +402,7 @@ export default { onToggleButtonKeyDown(event) { switch (event.code) { case 'Enter': + case 'NumpadEnter': case 'Space': this.toggleMenu(event); diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index ad114fa68..c74b1a4bf 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -839,6 +839,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event, rowData, rowIndex); break; diff --git a/components/lib/datatable/HeaderCell.vue b/components/lib/datatable/HeaderCell.vue index d5600f4ec..9d4423b6d 100644 --- a/components/lib/datatable/HeaderCell.vue +++ b/components/lib/datatable/HeaderCell.vue @@ -228,7 +228,7 @@ export default { this.$emit('column-click', { originalEvent: event, column: this.column }); }, onKeyDown(event) { - if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) { + if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) { this.$emit('column-click', { originalEvent: event, column: this.column }); event.preventDefault(); } diff --git a/components/lib/dock/DockSub.vue b/components/lib/dock/DockSub.vue index 741219eda..ad1732f39 100644 --- a/components/lib/dock/DockSub.vue +++ b/components/lib/dock/DockSub.vue @@ -197,6 +197,7 @@ export default { } case 'Enter': + case 'NumpadEnter': case 'Space': { this.onSpaceKey(event); diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index f964b3e00..833d5c454 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -473,6 +473,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/fieldset/Fieldset.vue b/components/lib/fieldset/Fieldset.vue index 45d20cc09..f5c7c7d42 100755 --- a/components/lib/fieldset/Fieldset.vue +++ b/components/lib/fieldset/Fieldset.vue @@ -66,7 +66,7 @@ export default { }); }, onKeyDown(event) { - if (event.code === 'Enter' || event.code === 'Space') { + if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') { this.toggle(event); event.preventDefault(); } diff --git a/components/lib/galleria/GalleriaItem.vue b/components/lib/galleria/GalleriaItem.vue index 6c4aa09e1..e72d6e0b8 100755 --- a/components/lib/galleria/GalleriaItem.vue +++ b/components/lib/galleria/GalleriaItem.vue @@ -149,6 +149,7 @@ export default { onIndicatorKeyDown(event, index) { switch (event.code) { case 'Enter': + case 'NumpadEnter': case 'Space': this.stopSlideShow(); diff --git a/components/lib/galleria/GalleriaThumbnails.vue b/components/lib/galleria/GalleriaThumbnails.vue index 5df896fad..cd545db52 100755 --- a/components/lib/galleria/GalleriaThumbnails.vue +++ b/components/lib/galleria/GalleriaThumbnails.vue @@ -298,7 +298,7 @@ export default { } }, onThumbnailKeydown(event, index) { - if (event.code === 'Enter' || event.code === 'Space') { + if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') { this.onItemClick(index); event.preventDefault(); } diff --git a/components/lib/listbox/Listbox.vue b/components/lib/listbox/Listbox.vue index 6cbc89035..50191482f 100755 --- a/components/lib/listbox/Listbox.vue +++ b/components/lib/listbox/Listbox.vue @@ -266,6 +266,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onSpaceKey(event); break; @@ -414,6 +415,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/megamenu/MegaMenu.vue b/components/lib/megamenu/MegaMenu.vue index c0ba7250e..ce3c8f31b 100755 --- a/components/lib/megamenu/MegaMenu.vue +++ b/components/lib/megamenu/MegaMenu.vue @@ -223,6 +223,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; @@ -300,7 +301,7 @@ export default { this.toggle(event); }, menuButtonKeydown(event) { - (event.code === 'Enter' || event.code === 'Space') && this.menuButtonClick(event); + (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && this.menuButtonClick(event); }, onArrowDownKey(event) { if (this.horizontal) { diff --git a/components/lib/menu/Menu.vue b/components/lib/menu/Menu.vue index 501a7abbf..4bb75c1c8 100644 --- a/components/lib/menu/Menu.vue +++ b/components/lib/menu/Menu.vue @@ -152,6 +152,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/menubar/Menubar.vue b/components/lib/menubar/Menubar.vue index e90310af2..b559f8e34 100755 --- a/components/lib/menubar/Menubar.vue +++ b/components/lib/menubar/Menubar.vue @@ -211,6 +211,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; @@ -292,7 +293,7 @@ export default { this.toggle(event); }, menuButtonKeydown(event) { - (event.code === 'Enter' || event.code === 'Space') && this.menuButtonClick(event); + (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && this.menuButtonClick(event); }, onArrowDownKey(event) { const processedItem = this.visibleItems[this.focusedItemInfo.index]; diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 372c94339..3d7f8ef7c 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -379,6 +379,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onEnterKey(event); break; @@ -511,6 +512,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/orderlist/OrderList.vue b/components/lib/orderlist/OrderList.vue index f3526fe3d..863f394ec 100755 --- a/components/lib/orderlist/OrderList.vue +++ b/components/lib/orderlist/OrderList.vue @@ -176,6 +176,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/organizationchart/OrganizationChartNode.vue b/components/lib/organizationchart/OrganizationChartNode.vue index 812f3a1fc..99c1a507a 100755 --- a/components/lib/organizationchart/OrganizationChartNode.vue +++ b/components/lib/organizationchart/OrganizationChartNode.vue @@ -125,7 +125,7 @@ export default { this.$emit('node-toggle', node); }, onKeydown(event) { - if (event.code === 'Enter' || event.code === 'Space') { + if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') { this.toggleNode(); event.preventDefault(); } diff --git a/components/lib/panel/Panel.vue b/components/lib/panel/Panel.vue index 8f4ad4fd1..c2993fdac 100755 --- a/components/lib/panel/Panel.vue +++ b/components/lib/panel/Panel.vue @@ -70,7 +70,7 @@ export default { }); }, onKeyDown(event) { - if (event.code === 'Enter' || event.code === 'Space') { + if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') { this.toggle(event); event.preventDefault(); } diff --git a/components/lib/panelmenu/PanelMenu.vue b/components/lib/panelmenu/PanelMenu.vue index 723e6f7c3..8abec3f03 100644 --- a/components/lib/panelmenu/PanelMenu.vue +++ b/components/lib/panelmenu/PanelMenu.vue @@ -153,6 +153,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onHeaderEnterKey(event, item); break; diff --git a/components/lib/panelmenu/PanelMenuList.vue b/components/lib/panelmenu/PanelMenuList.vue index f1c45f92f..6f4faf8c5 100644 --- a/components/lib/panelmenu/PanelMenuList.vue +++ b/components/lib/panelmenu/PanelMenuList.vue @@ -126,6 +126,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/picklist/PickList.vue b/components/lib/picklist/PickList.vue index 3d6781926..92dde3d4d 100755 --- a/components/lib/picklist/PickList.vue +++ b/components/lib/picklist/PickList.vue @@ -642,6 +642,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event, listType); break; diff --git a/components/lib/speeddial/SpeedDial.vue b/components/lib/speeddial/SpeedDial.vue index c5712a171..ec8bde79f 100644 --- a/components/lib/speeddial/SpeedDial.vue +++ b/components/lib/speeddial/SpeedDial.vue @@ -197,6 +197,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onEnterKey(event); break; diff --git a/components/lib/steps/Steps.vue b/components/lib/steps/Steps.vue index de0b2a47d..c461ec753 100755 --- a/components/lib/steps/Steps.vue +++ b/components/lib/steps/Steps.vue @@ -115,6 +115,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': { this.onItemClick(event, item); diff --git a/components/lib/tabmenu/TabMenu.vue b/components/lib/tabmenu/TabMenu.vue index 59076c57f..f2674c9f7 100755 --- a/components/lib/tabmenu/TabMenu.vue +++ b/components/lib/tabmenu/TabMenu.vue @@ -121,6 +121,7 @@ export default { } case 'Space': + case 'NumpadEnter': case 'Enter': { this.onItemClick(event, item, index); diff --git a/components/lib/tabview/TabView.vue b/components/lib/tabview/TabView.vue index 2633b5228..d048080d2 100755 --- a/components/lib/tabview/TabView.vue +++ b/components/lib/tabview/TabView.vue @@ -220,6 +220,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onTabEnterKey(event, tab, index); break; diff --git a/components/lib/terminal/Terminal.vue b/components/lib/terminal/Terminal.vue index 12c97772e..41c2a3364 100755 --- a/components/lib/terminal/Terminal.vue +++ b/components/lib/terminal/Terminal.vue @@ -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 = ''; diff --git a/components/lib/tieredmenu/TieredMenu.vue b/components/lib/tieredmenu/TieredMenu.vue index dc3b7b284..78b9660f0 100755 --- a/components/lib/tieredmenu/TieredMenu.vue +++ b/components/lib/tieredmenu/TieredMenu.vue @@ -205,6 +205,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/tree/Tree.vue b/components/lib/tree/Tree.vue index 2316798d8..c63e36b0d 100755 --- a/components/lib/tree/Tree.vue +++ b/components/lib/tree/Tree.vue @@ -164,7 +164,7 @@ export default { return node.leaf === false ? false : !(node.children && node.children.length); }, onFilterKeydown(event) { - if (event.code === 'Enter') { + if (event.code === 'Enter' || event.code === 'NumpadEnter') { event.preventDefault(); } diff --git a/components/lib/tree/TreeNode.vue b/components/lib/tree/TreeNode.vue index 916ea8795..a3e59f0ed 100755 --- a/components/lib/tree/TreeNode.vue +++ b/components/lib/tree/TreeNode.vue @@ -185,6 +185,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': this.onEnterKey(event); diff --git a/components/lib/treeselect/TreeSelect.vue b/components/lib/treeselect/TreeSelect.vue index 285e78178..1b741927b 100644 --- a/components/lib/treeselect/TreeSelect.vue +++ b/components/lib/treeselect/TreeSelect.vue @@ -230,6 +230,7 @@ export default { case 'Space': case 'Enter': + case 'NumpadEnter': this.onEnterKey(event); break; diff --git a/components/lib/treetable/HeaderCell.vue b/components/lib/treetable/HeaderCell.vue index 3a6b012ba..7bd459940 100644 --- a/components/lib/treetable/HeaderCell.vue +++ b/components/lib/treetable/HeaderCell.vue @@ -148,7 +148,7 @@ export default { this.$emit('column-click', { originalEvent: event, column: this.column }); }, onKeyDown(event) { - if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) { + if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) { this.$emit('column-click', { originalEvent: event, column: this.column }); event.preventDefault(); diff --git a/components/lib/treetable/TreeTable.vue b/components/lib/treetable/TreeTable.vue index 916e75954..ba153a3f7 100755 --- a/components/lib/treetable/TreeTable.vue +++ b/components/lib/treetable/TreeTable.vue @@ -718,7 +718,7 @@ export default { } }, onColumnKeyDown(event, col) { - if (event.code === 'Enter' && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) { + if ((event.code === 'Enter' || event.code === 'NumpadEnter') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) { this.onColumnHeaderClick(event, col); } }, diff --git a/components/lib/treetable/TreeTableRow.vue b/components/lib/treetable/TreeTableRow.vue index 11c3c3696..688a594c8 100755 --- a/components/lib/treetable/TreeTableRow.vue +++ b/components/lib/treetable/TreeTableRow.vue @@ -185,6 +185,7 @@ export default { break; case 'Enter': + case 'NumpadEnter': case 'Space': if (!DomHandler.isClickable(event.target)) { this.onEnterKey(event, item); diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.vue b/components/lib/tristatecheckbox/TriStateCheckbox.vue index c17554df8..ad875f5ed 100755 --- a/components/lib/tristatecheckbox/TriStateCheckbox.vue +++ b/components/lib/tristatecheckbox/TriStateCheckbox.vue @@ -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();