X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..HEAD:/docs/source/Manager.html diff --git a/docs/source/Manager.html b/docs/source/Manager.html index c5a4568f..8b99011b 100644 --- a/docs/source/Manager.html +++ b/docs/source/Manager.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.menu.Manager
  * Provides a common registry of all menus on a page.
  * @singleton
@@ -29,7 +46,7 @@ Ext.define('Ext.menu.Manager', {
         }, me);
     },
 
-    /**
+    /**
      * Hides all menus that are currently visible
      * @return {Boolean} success True if any active menus were hidden.
      */
@@ -100,10 +117,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();
+            }
         }
     },
 
@@ -127,7 +150,7 @@ Ext.define('Ext.menu.Manager', {
         }
     },
 
-    /**
+    /**
      * Returns a {@link Ext.menu.Menu} object
      * @param {String/Object} menu The string menu id, an existing menu object reference, or a Menu config that will
      * be used to generate and return a new Menu this.
@@ -208,4 +231,6 @@ Ext.define('Ext.menu.Manager', {
             }
         }
     }
-});
\ No newline at end of file +});
+ +