diff --git a/src/components/panelmenu/PanelMenu.vue b/src/components/panelmenu/PanelMenu.vue
index 02ca47c0a..2f9a1b753 100755
--- a/src/components/panelmenu/PanelMenu.vue
+++ b/src/components/panelmenu/PanelMenu.vue
@@ -10,7 +10,7 @@
-
@@ -23,7 +23,7 @@
@@ -64,7 +64,7 @@ export default {
if (this.isActive(item) && this.activeItem === null) {
this.activeItem = item;
}
-
+
if (this.disabled(item)) {
event.preventDefault();
return;
@@ -83,11 +83,16 @@ export default {
this.activeItem = item;
this.updateExpandedKeys({item: item, expanded: this.activeItem != null});
-
+
if (item.to && navigate) {
navigate(event);
}
},
+ onItemKeydown(event, item) {
+ if (event.which === 13) {
+ this.onItemClick(event, item);
+ }
+ },
updateExpandedKeys(event) {
if (this.expandedKeys) {
let item = event.item;
diff --git a/src/components/panelmenu/PanelMenuSub.vue b/src/components/panelmenu/PanelMenuSub.vue
index e048cf0d3..c12103eeb 100755
--- a/src/components/panelmenu/PanelMenuSub.vue
+++ b/src/components/panelmenu/PanelMenuSub.vue
@@ -9,7 +9,7 @@
-
@@ -85,6 +85,11 @@ export default {
navigate(event);
}
},
+ onItemKeydown(event, item) {
+ if (event.which === 13) {
+ this.onItemClick(event, item);
+ }
+ },
getItemClass(item) {
return ['p-menuitem', item.className];
},