X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/src/menu/Manager.js diff --git a/src/menu/Manager.js b/src/menu/Manager.js index 69ad2ce1..f95cf78b 100644 --- a/src/menu/Manager.js +++ b/src/menu/Manager.js @@ -114,10 +114,16 @@ Ext.define('Ext.menu.Manager', { onMouseDown: function(e) { var me = this, active = me.active, - lastShow = me.lastShow; + lastShow = me.lastShow, + target = e.target; if (Ext.Date.getElapsed(lastShow) > 50 && active.length > 0 && !e.getTarget('.' + Ext.baseCSSPrefix + 'menu')) { me.hideAll(); + // in IE, if we mousedown on a focusable element, the focus gets cancelled and the focus event is never + // fired on the element, so we'll focus it here + if (Ext.isIE && Ext.fly(target).focusable()) { + target.focus(); + } } },