Menu Component: set atttibute "oo_editor_input" for getting focus and keyboard events.
This commit is contained in:
parent
4a2fee8579
commit
f415118e05
|
@ -147,7 +147,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<ul class="dropdown-menu <%= options.cls %>" style="<%= options.style %>" role="menu"></ul>'
|
'<ul class="dropdown-menu <%= options.cls %>" oo_editor_input="true" style="<%= options.style %>" role="menu"></ul>'
|
||||||
].join('')),
|
].join('')),
|
||||||
|
|
||||||
initialize : function(options) {
|
initialize : function(options) {
|
||||||
|
|
|
@ -566,6 +566,7 @@ define([
|
||||||
cyclic: false,
|
cyclic: false,
|
||||||
items: []
|
items: []
|
||||||
}).on('render:after', function(mnu) {
|
}).on('render:after', function(mnu) {
|
||||||
|
mnu.cmpEl.removeAttr('oo_editor_input').attr('oo_editor_keyboard', true);
|
||||||
this.scroller = new Common.UI.Scroller({
|
this.scroller = new Common.UI.Scroller({
|
||||||
el: $(this.el).find('.dropdown-menu '),
|
el: $(this.el).find('.dropdown-menu '),
|
||||||
useKeyboard: this.enableKeyEvents && !this.handleSelect,
|
useKeyboard: this.enableKeyEvents && !this.handleSelect,
|
||||||
|
@ -581,6 +582,7 @@ define([
|
||||||
cyclic: false,
|
cyclic: false,
|
||||||
items: []
|
items: []
|
||||||
}).on('render:after', function(mnu) {
|
}).on('render:after', function(mnu) {
|
||||||
|
mnu.cmpEl.removeAttr('oo_editor_input').attr('oo_editor_keyboard', true);
|
||||||
this.scroller = new Common.UI.Scroller({
|
this.scroller = new Common.UI.Scroller({
|
||||||
el: $(this.el).find('.dropdown-menu '),
|
el: $(this.el).find('.dropdown-menu '),
|
||||||
useKeyboard: this.enableKeyEvents && !this.handleSelect,
|
useKeyboard: this.enableKeyEvents && !this.handleSelect,
|
||||||
|
|
Loading…
Reference in a new issue