Adds final submenu closing and opening on left/right key.
This commit is contained in:
parent
56deff3a7d
commit
a7e4c1a14c
|
@ -731,12 +731,13 @@
|
|||
},
|
||||
MoveHorizontal: function(event, item, move, rtl) {
|
||||
var menuNode = ITEM.GetMenuNode(item);
|
||||
if (menuNode.menuItem === MENU.menu) {
|
||||
if (!event.shiftKey) { return; }
|
||||
if (menuNode.menuItem === MENU.menu && event.shiftKey) {
|
||||
move(event, item);
|
||||
}
|
||||
if (rtl) { return; }
|
||||
if (menuNode.menuItem !== MENU.menu && event.shiftKey) {
|
||||
this.Deactivate(item);
|
||||
}
|
||||
var parentNodes = menuNode.previousSibling.childNodes;
|
||||
var length = parentNodes.length;
|
||||
while (length--) {
|
||||
|
@ -875,6 +876,10 @@
|
|||
if (this.disabled) {
|
||||
return;
|
||||
}
|
||||
if (!this.submenu.posted) {
|
||||
this.Activate(event, menu);
|
||||
return;
|
||||
}
|
||||
var submenuNodes = ITEM.GetMenuNode(menu).nextSibling.childNodes;
|
||||
if (submenuNodes.length > 0) {
|
||||
this.submenu.items[0].Activate(event, submenuNodes[0]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user