1. #1
    Ext JS Premium Member neongrau's Avatar
    Join Date
    Mar 2007
    Posts
    249
    Vote Rating
    0
    neongrau is on a distinguished road

      0  

    Default 1.0a3 grid keyboard support problems on FF and Opera

    1.0a3 grid keyboard support problems on FF and Opera


    hi all!

    after adding an input type=text to the pagingtoolbar for searching i noticed a very irritating problem.

    somehow the mappings for e.UP and e.RIGHT seem to break the "(" and "&" characters on a german keyboard.

    Code:
    ( -> SHIFT+8
    & -> SHIFT+6
    instead of being able to type these characters the grid selectionmodel thinks i'm pressing the up and right keys.

    this occurs on FF and Opera, IE 6+7 seem to work fine. no idea what Safari does.

    you can easily test it on
    http://www.yui-ext.com/deploy/ext-1....id/paging.html

    by just trying to type into the default page-number input
    i'm not sure if or how this bug shows on other keyboard layouts. needs to be tested.

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    403
    Vote Rating
    0
    KimH is on a distinguished road

      0  

    Default


    I can see the problem on my laptop with different language settings (then Shift-6 and Shift-8 might be Shift-7 and Shift-9 though), but I can't reconstruct it on my normal PC (full 102 Keyboard). My guess is that you are using a laptop too?

  3. #3
    Ext JS Premium Member neongrau's Avatar
    Join Date
    Mar 2007
    Posts
    249
    Vote Rating
    0
    neongrau is on a distinguished road

      0  

    Default


    actually i'm on a laptop, but with a full keyboard attached.
    and it happens on normal pc's as well, tested on 1 pc and 2 different laptops.
    but all have german keyboard layouts.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Can I ask what keys are reported for up and right? Same keys?
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  5. #5
    Ext JS Premium Member neongrau's Avatar
    Join Date
    Mar 2007
    Posts
    249
    Vote Rating
    0
    neongrau is on a distinguished road

      0  

    Default


    somehow it differs when using keypress or keydown


    Code:
    Ext.fly('query').on('keypress', function(e) {
      console.log('key',e.getKey())
    });
    when pressing SHIFT+8 for the "(" i get keycode 40 which is wrong, thats the keycode of cursor up or SHIFT+8(on number block)
    when pressing SHIFT+6 for the "&" i get keycode 38 which is wrong, thats the keycode of cursor right or SHIFT+6(on number block)

    Code:
    Ext.fly('query').on('keydown', function(e) {
      console.log('key',e.getKey())
    });
    when pressing SHIFT+8 for the "(" i get keycode 56 and lots of repeating 16 (for shift)
    when pressing SHIFT+6 for the "&" i get keycode 54 and lots of repeating 16 (for shift)

  6. #6
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    What do you get for the arrows with keypress?
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  7. #7
    Ext JS Premium Member neongrau's Avatar
    Join Date
    Mar 2007
    Posts
    249
    Vote Rating
    0
    neongrau is on a distinguished road

      0  

    Default


    wait i mixed s.th. up with the keycodes on the number block these are the same as the cursor one. so ignore that


    but anyways:

    38 => UP
    39 => RIGHT
    40 => DOWN
    37 => LEFT

    but that should be the same in whatever language layout

  8. #8
    Ext JS Premium Member neongrau's Avatar
    Join Date
    Mar 2007
    Posts
    249
    Vote Rating
    0
    neongrau is on a distinguished road

      0  

    Default


    i noticed that the same bug prevents typing "(" in a ComboBox

    thats SHIFT+8 on the german keyboard

    and again only in FF and Opera, in IE 6+7 it works.

    (tested in current 1.0b1)

  9. #9
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Hey neongrau,

    I'm not sure how I can test this to develop a workaround (if it can be worked around). One thing you may try is overriding the Ext.KeyNav function which hooks the events and change it to always use keydown? The will break repeated key firing but should at least make it function.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  10. #10
    Ext JS Premium Member neongrau's Avatar
    Join Date
    Mar 2007
    Posts
    249
    Vote Rating
    0
    neongrau is on a distinguished road

      0  

    Default


    the keypress instead of keydown sounds like an idea, but isn't that weird?
    could it be a bug in FF that is causing the wrong keycodes to be returned?

Similar Threads

  1. Has anyone tried Opera 9.10? turtle speeds?
    By vtswingkid in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 20 Feb 2007, 1:53 PM
  2. using keyboard (arrow up/ down) in grid with FF?
    By franklt69 in forum Ext 1.x: Help & Discussion
    Replies: 15
    Last Post: 6 Feb 2007, 6:00 AM
  3. Toolbar Problems in Firefox and Opera
    By adzaip in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 23 Dec 2006, 5:15 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar