1. #1
    Touch Premium Member jongohr's Avatar
    Join Date
    Mar 2007
    Location
    Lakeville, MN
    Posts
    39
    Vote Rating
    0
    jongohr is on a distinguished road

      0  

    Default HelloWorld Dialog KeyListener and IE7 Problem

    HelloWorld Dialog KeyListener and IE7 Problem


    Not sure if this is a known issue so I thought I would post it just in case.

    The escape key listener stops working in IE7 if you move the dialog. Works just fine as long as you don't move the dialog.

    Was running the example locally but double checked it online in the following docs and the behavior is the same.

    http://www.yui-ext.com/deploy/ext-1.0-alpha3/docs/

  2. #2
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Im seeing this same behavior in IE 6 (verified it in IE 7 also), and as usual FF is working fine.

    It appears that the key listener keeps working, just the dialog is not the focus anymore.

    I setup a test page, the 'a' key is attached to the dialog, and the 'b' key is attached to the body. The 'b' key continues to work after the dialog is moved, but the 'a' key does not.
    http://www.vinylfox.com/yui-ext/sandbox/test4.php

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


    The dialog can only receive keys when it has the focus. I will add a refocus to the default button or the hidden focusEl after a move or resize in the next rev.

    In the meantime, tell me if this workaround fixes it for you:

    dlg.on('move', dlg.focus, dlg);
    dlg.on('resize', dlg.focus, dlg);

  4. #4
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Yeah, that fixes it.

    I updated my test page with those two lines and everything appears to be working as expected.

    Also, I noticed while playing with it before adding those lines, that if i clicked back in the body area of the dialog that my keyListener mapped keys started working again.

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    146
    Vote Rating
    0
    rahulmca1@gmail.com is on a distinguished road

      0  

    Default


    Hi Jack,

    Ext rocks.
    Using Ext2.0.1
    Facing one problem:-
    Wanted to know why is it that escape key does not work for safari on mac both basic window and layout window (in the examples) does not handle escape key.
    if u open below examples windows in mac safari works fine in other browsers
    http://extjs.com/deploy/dev/examples/window/hello.html

    Thanks...

Similar Threads

  1. Bug:HelloWorld Dialog,Esc keyboard event.
    By skyey in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 15 Mar 2007, 1:56 AM
  2. Problem removing dialog
    By Nullity in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 27 Feb 2007, 7:01 AM
  3. KeyListener not registering
    By Domitian in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 31 Jan 2007, 12:45 PM
  4. YUI Help - KeyListener + Event
    By allaboutyui in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 1 Jan 2007, 3:04 PM
  5. KeyListener, Tabpanel and rest of the site
    By wannabe in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 15 Sep 2006, 10:43 AM

Thread Participants: 3