[SSE] Fixed bugs with closing function menu by ESC.
This commit is contained in:
parent
6232f19dcc
commit
cb45250805
|
@ -95,7 +95,7 @@ define([
|
||||||
|
|
||||||
onInputKeyDown: function(e) {
|
onInputKeyDown: function(e) {
|
||||||
if (Common.UI.Keys.UP === e.keyCode || Common.UI.Keys.DOWN === e.keyCode ||
|
if (Common.UI.Keys.UP === e.keyCode || Common.UI.Keys.DOWN === e.keyCode ||
|
||||||
Common.UI.Keys.TAB === e.keyCode || Common.UI.Keys.RETURN === e.keyCode) {
|
Common.UI.Keys.TAB === e.keyCode || Common.UI.Keys.RETURN === e.keyCode || Common.UI.Keys.ESC === e.keyCode) {
|
||||||
var menu = $('#menu-formula-selection'); // for formula menu
|
var menu = $('#menu-formula-selection'); // for formula menu
|
||||||
if (menu.hasClass('open'))
|
if (menu.hasClass('open'))
|
||||||
menu.find('.dropdown-menu').trigger('keydown', e);
|
menu.find('.dropdown-menu').trigger('keydown', e);
|
||||||
|
|
Loading…
Reference in a new issue