* 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
// 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