Fix Bug 34587.
This commit is contained in:
parent
61f738b601
commit
8c7abd962f
|
@ -141,7 +141,7 @@ define([
|
||||||
me.onAfterHideMenu(e);
|
me.onAfterHideMenu(e);
|
||||||
}, 10);
|
}, 10);
|
||||||
return false;
|
return false;
|
||||||
} else if ((e.keyCode == Common.UI.Keys.HOME || e.keyCode == Common.UI.Keys.END || e.keyCode == Common.UI.Keys.BACKSPACE) && this.isMenuOpen()) {
|
} else if ((e.keyCode == Common.UI.Keys.HOME && !e.shiftKey || e.keyCode == Common.UI.Keys.END && !e.shiftKey || e.keyCode == Common.UI.Keys.BACKSPACE && !me._input.is(':focus')) && this.isMenuOpen()) {
|
||||||
me._input.focus();
|
me._input.focus();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
me._input[0].selectionStart = me._input[0].selectionEnd = (e.keyCode == Common.UI.Keys.HOME) ? 0 : me._input[0].value.length;
|
me._input[0].selectionStart = me._input[0].selectionEnd = (e.keyCode == Common.UI.Keys.HOME) ? 0 : me._input[0].value.length;
|
||||||
|
|
Loading…
Reference in a new issue