1. #1
    Sencha User
    Join Date
    Apr 2007
    Posts
    11
    Vote Rating
    0
    reel is on a distinguished road

      0  

    Default [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

  2. #2
    Sencha User
    Join Date
    Apr 2007
    Posts
    11
    Vote Rating
    0
    reel is on a distinguished road

      0  

    Post 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):

    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();
    });
    Not working (Adobe Air 1.5.1):

    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

  3. #3
    Ext User MuratCorlu's Avatar
    Join Date
    Oct 2007
    Location
    Istanbul, Turkey
    Posts
    30
    Vote Rating
    0
    MuratCorlu is on a distinguished road

      0  

    Default


    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...

  4. #4
    Sencha User
    Join Date
    Apr 2007
    Posts
    11
    Vote Rating
    0
    reel is on a distinguished road

      0  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    Apr 2007
    Posts
    11
    Vote Rating
    0
    reel is on a distinguished road

      0  

    Default


    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

  6. #6
    Ext User
    Join Date
    Aug 2007
    Posts
    1
    Vote Rating
    0
    horious is on a distinguished road

      0  

    Default 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.

Thread Participants: 2