Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / src / core / EventManager-more.js
index c734fa5..6a6bfc8 100644 (file)
@@ -1,5 +1,5 @@
 /*!
 /*!
- * Ext JS Library 3.0.0
+ * Ext JS Library 3.0.3
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -20,8 +20,8 @@ Ext.apply(Ext.EventManager, function(){
         // note 1: IE fires ONLY the keydown event on specialkey autorepeat\r
         // note 2: Safari < 3.1, Gecko (Mac/Linux) & Opera fire only the keypress event on specialkey autorepeat\r
         // (research done by @Jan Wolter at http://unixpapa.com/js/key.html)\r
         // note 1: IE fires ONLY the keydown event on specialkey autorepeat\r
         // note 2: Safari < 3.1, Gecko (Mac/Linux) & Opera fire only the keypress event on specialkey autorepeat\r
         // (research done by @Jan Wolter at http://unixpapa.com/js/key.html)\r
-        useKeydown = Ext.isSafari ? \r
-                    Ext.num(navigator.userAgent.toLowerCase().match(/version\/(\d+\.\d)/)[1] || 2) >= 3.1 :\r
+        useKeydown = Ext.isWebKit ? \r
+                    Ext.num(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1]) >= 525 :\r
                     !((Ext.isGecko && !Ext.isWindows) || Ext.isOpera);\r
        \r
        return { \r
                     !((Ext.isGecko && !Ext.isWindows) || Ext.isOpera);\r
        \r
        return { \r