8 Mar 2007 5:26 PM #1
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.
8 Mar 2007 6:13 PM #2
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.
8 Mar 2007 9:59 PM #3
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);
8 Mar 2007 10:20 PM #4
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.
1 May 2008 12:30 AM #5
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
By skyey in forum Ext 1.x: BugsReplies: 1Last Post: 15 Mar 2007, 1:56 AM
By Nullity in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 27 Feb 2007, 7:01 AM
By Domitian in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 31 Jan 2007, 12:45 PM
By allaboutyui in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 1 Jan 2007, 3:04 PM
By wannabe in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 15 Sep 2006, 10:43 AM