Fix focus in multilevel menu
This commit is contained in:
parent
2f868c9780
commit
b4991432a5
|
@ -502,6 +502,8 @@ define([
|
||||||
}
|
}
|
||||||
Common.UI.Menu.Manager.hideAll();
|
Common.UI.Menu.Manager.hideAll();
|
||||||
} else if (e.namespace!=="after.bs.dropdown" && (e.keyCode == Common.UI.Keys.DOWN || e.keyCode == Common.UI.Keys.UP)) {
|
} else if (e.namespace!=="after.bs.dropdown" && (e.keyCode == Common.UI.Keys.DOWN || e.keyCode == Common.UI.Keys.UP)) {
|
||||||
|
if ( this.menuRoot.length<1 || $(e.target).closest('ul[role=menu]').get(0) !== this.menuRoot.get(0)) return;
|
||||||
|
|
||||||
var innerMenu = this.findInnerMenu(e.keyCode);
|
var innerMenu = this.findInnerMenu(e.keyCode);
|
||||||
if (innerMenu && innerMenu.focusInner) {
|
if (innerMenu && innerMenu.focusInner) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
@ -105,6 +105,7 @@ define([
|
||||||
this.colors = me.options.colors || this.generateColorData(me.options.themecolors, me.options.effects, me.options.standardcolors, me.options.transparent);
|
this.colors = me.options.colors || this.generateColorData(me.options.themecolors, me.options.effects, me.options.standardcolors, me.options.transparent);
|
||||||
this.enableKeyEvents= me.options.enableKeyEvents;
|
this.enableKeyEvents= me.options.enableKeyEvents;
|
||||||
this.tabindex = me.options.tabindex || 0;
|
this.tabindex = me.options.tabindex || 0;
|
||||||
|
this.outerMenu = me.options.outerMenu;
|
||||||
this.lastSelectedIdx = -1;
|
this.lastSelectedIdx = -1;
|
||||||
|
|
||||||
me.colorItems = [];
|
me.colorItems = [];
|
||||||
|
|
|
@ -2171,8 +2171,10 @@ define([
|
||||||
'808000', '00FF00', '008080', '0000FF', '666699', '808080', 'FF0000', 'FF9900', '99CC00', '339966',
|
'808000', '00FF00', '008080', '0000FF', '666699', '808080', 'FF0000', 'FF9900', '99CC00', '339966',
|
||||||
'33CCCC', '3366FF', '800080', '999999', 'FF00FF', 'FFCC00', 'FFFF00', '00FF00', '00FFFF', '00CCFF',
|
'33CCCC', '3366FF', '800080', '999999', 'FF00FF', 'FFCC00', 'FFFF00', '00FF00', '00FFFF', '00CCFF',
|
||||||
'993366', 'C0C0C0', 'FF99CC', 'FFCC99', 'FFFF99', 'CCFFCC', 'CCFFFF', 'C9C8FF', 'CC99FF', 'FFFFFF'
|
'993366', 'C0C0C0', 'FF99CC', 'FFCC99', 'FFFF99', 'CCFFCC', 'CCFFFF', 'C9C8FF', 'CC99FF', 'FFFFFF'
|
||||||
]
|
],
|
||||||
|
outerMenu: {menu: this.mnuHighlightControls, index: 2}
|
||||||
});
|
});
|
||||||
|
this.mnuHighlightControls.setInnerMenu([{menu: this.mnuControlsColorPicker, index: 2}]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue