From f415118e054a5ac897ab6159b1460d8dc0c12b6b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 6 Jul 2016 13:59:54 +0300 Subject: [PATCH] Menu Component: set atttibute "oo_editor_input" for getting focus and keyboard events. --- apps/common/main/lib/component/Menu.js | 2 +- apps/spreadsheeteditor/main/app/view/DocumentHolder.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/Menu.js b/apps/common/main/lib/component/Menu.js index 5cac51db6..636785a7e 100644 --- a/apps/common/main/lib/component/Menu.js +++ b/apps/common/main/lib/component/Menu.js @@ -147,7 +147,7 @@ define([ }, template: _.template([ - '' + '' ].join('')), initialize : function(options) { diff --git a/apps/spreadsheeteditor/main/app/view/DocumentHolder.js b/apps/spreadsheeteditor/main/app/view/DocumentHolder.js index 9381d254c..901afa314 100644 --- a/apps/spreadsheeteditor/main/app/view/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/view/DocumentHolder.js @@ -566,6 +566,7 @@ define([ cyclic: false, items: [] }).on('render:after', function(mnu) { + mnu.cmpEl.removeAttr('oo_editor_input').attr('oo_editor_keyboard', true); this.scroller = new Common.UI.Scroller({ el: $(this.el).find('.dropdown-menu '), useKeyboard: this.enableKeyEvents && !this.handleSelect, @@ -581,6 +582,7 @@ define([ cyclic: false, items: [] }).on('render:after', function(mnu) { + mnu.cmpEl.removeAttr('oo_editor_input').attr('oo_editor_keyboard', true); this.scroller = new Common.UI.Scroller({ el: $(this.el).find('.dropdown-menu '), useKeyboard: this.enableKeyEvents && !this.handleSelect,