-
15 Mar 2009 9:54 AM #1
[BUG] Adobe Air 1.5.1 getKey / getCharCode returns wrong char code
[BUG] Adobe Air 1.5.1 getKey / getCharCode returns wrong char code
Sorry if this is the wrong place for posting this bug. I'm a bit in a hurry and I can not currently test the bug with a nightly of webkit, so I don't now if this thing is already fixed for newer revision of webkit.
getKey() and getCharCode() returns wrong char code, e.g. in Air 1.5 ',' returns 44 and in 1.5.1 it returns 188. So that e.g. maskRe is not working properly anymore.
ExtJs: 2.2.1 (used with ext-base.js)
Adobe Air: 1.5.1 (WebKit r34190)
OS: Mac OS X 10.5.6
-
29 Mar 2009 6:05 AM #2
Simple test case
Simple test case
Here is a simple test case for the bug:
The textbox should let you insert only numbers (0-9) and commas (,)!
Working (Safari 3, WebKit r42075, Adobe Air 1.5, Firefox 3.0.8):
Not working (Adobe Air 1.5.1):Code:Ext.onReady(function () { var testWindow = new Ext.Window({ titel: 'Test', layout: 'form', width: 300, height: 300, items: [{ xtype: 'textfield', fieldLabel: 'Test', maskRe: /\d|\,/ }] }); testWindow.show(); });
It's not possible to insert commas (,) just numbers.
Please download from here (just the same code as above, but as an air app) http://hosting.xreel.de/files/maskre_bug.zip
Everything tested with:
ExtJS: 2.2.1 (ext-base.js)
Mac OS X 10.5.6
-
30 Mar 2009 1:28 AM #3
I had a similar problem with NumberField (Air 1.5.1, Ext 2.2, Windows XP). Although I use decimalPrecision:2 config, I couldn't insert dots (.) to NumberFields. But when I upgrade my Ext to 2.2.1, the problem has gone. Maybe this solved only for Windows...
-
8 Apr 2009 12:09 AM #4
I have also tested the bug on Windows XP with Adobe Air 1.5.1. Same as on Mac. So this is not Mac spezific.

-
30 Jul 2009 9:18 AM #5
The Problem is still existing. Even with ExtJS 2.3. I didn't tested it with 3.0 so far. Everyone else does?

ExtJs: 2.3 (ext-base.js)
Adobe Air: 1.5.1
OS: Mac OS X 10.5.7, Windows XP SP3
-
3 Aug 2009 3:50 AM #6
test
test
I had a similar problem with NumberField, and TextField(vtype-email) (Air 1.5.2, Ext 2.3, Windows Vista)
I couldn't insert dots(.) and minus(-) charactor.


Reply With Quote