X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/source/EventManager-more.html?ds=sidebyside diff --git a/docs/source/EventManager-more.html b/docs/source/EventManager-more.html index 84f6ce6c..c9c51649 100644 --- a/docs/source/EventManager-more.html +++ b/docs/source/EventManager-more.html @@ -1,12 +1,18 @@ - - - - The source code - - - - -
/**
+
+
+      
+  The source code
+    
+    
+
+
+    
/*!
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
+ */
+/**
 * @class Ext.EventManager
 */
 Ext.apply(Ext.EventManager, function(){
@@ -31,14 +37,14 @@ Ext.apply(Ext.EventManager, function(){
            var h = D.getViewHeight(),
                w = D.getViewWidth();
 
-           //whacky problem in IE where the resize event will fire even though the w/h are the same.
-           if(curHeight != h || curWidth != w){
+            //whacky problem in IE where the resize event will fire even though the w/h are the same.
+            if(curHeight != h || curWidth != w){
                resizeEvent.fire(curWidth = w, curHeight = h);
-           }
+            }
        },
 
        
/** - * Adds a listener to be notified when the browser window is resized and provides resize event buffering (50 milliseconds), + * Adds a listener to be notified when the browser window is resized and provides resize event buffering (100 milliseconds), * passes new viewport width and height to handlers. * @param {Function} fn The handler function the window resize event invokes. * @param {Object} scope The scope (this reference) in which the handler function executes. Defaults to the browser window. @@ -56,11 +62,7 @@ Ext.apply(Ext.EventManager, function(){ // exposed only to allow manual firing fireWindowResize : function(){ if(resizeEvent){ - if((Ext.isIE||Ext.isAir) && resizeTask){ - resizeTask.delay(50); - }else{ - resizeEvent.fire(D.getViewWidth(), D.getViewHeight()); - } + resizeTask.delay(100); } }, @@ -114,6 +116,11 @@ Ext.apply(Ext.EventManager, function(){ * Url used for onDocumentReady with using SSL (defaults to Ext.SSL_SECURE_URL) */ ieDeferSrc : false, + + // protected, short accessor for useKeydown + getKeyEvent : function(){ + return useKeydown ? 'keydown' : 'keypress'; + }, // protected for use inside the framework // detects whether we should use keydown or keypress based on the browser. @@ -319,7 +326,7 @@ Ext.apply(Ext.EventObjectImpl.prototype, { this.isNavKeyPress() || (k == this.BACKSPACE) || // Backspace (k >= 16 && k <= 20) || // Shift, Ctrl, Alt, Pause, Caps Lock - (k >= 44 && k <= 45); // Print Screen, Insert + (k >= 44 && k <= 46); // Print Screen, Insert, Delete }, getPoint : function(){ @@ -333,6 +340,6 @@ Ext.apply(Ext.EventObjectImpl.prototype, { hasModifier : function(){ return ((this.ctrlKey || this.altKey) || this.shiftKey); } -});
- +});
+ \ No newline at end of file