Fix Bug 53311

This commit is contained in:
Julia Radzhabova 2021-10-26 11:26:31 +03:00
parent 809dc9ebc8
commit e3d3cb8acb

View file

@ -57,7 +57,7 @@ function onDropDownKeyDown(e) {
} }
} }
} else if ($this.hasClass('move-focus')) { } else if ($this.hasClass('move-focus')) {
if (!(/^(27|13|9|32)/.test(e.keyCode) && !e.ctrlKey && !e.altKey)) { if (!((/^(13|9|32)/.test(e.keyCode) || e.keyCode===27 && !$parent.hasClass('open')) && !e.ctrlKey && !e.altKey)) {
patchDropDownKeyDown.call(this, e); patchDropDownKeyDown.call(this, e);
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();