-
26 Jan 2011 11:20 PM #1
Unanswered: On KeyUp on Body element
Unanswered: On KeyUp on Body element
I've noticed something interesting - when I execute:
I don't hit my breakpoint when pressing keys. However, if I do:Code:Ext.onReady(function(){ Ext.getBody().on('keyup', function(){debugger;}); });
I do hit my breakpoint when pressing keys. This is in Ext Core 3.1. Is this a known issue or is this a browser limitation I should work around? Kindof annoying because my objects that I would bind to don't exist until after the onReady executes, but I can work around this by creating a dummy object that will relay the key ups and then bind to that.Code:Ext.onReady(function(){ }); Ext.getBody().on('keyup', function(){debugger;});
Just wondering. Test on firefox latest stable.
Similar Threads
-
Viewport inside form element, insted of body element
By ncardeli in forum Ext 2.x: Help & DiscussionReplies: 17Last Post: 19 Mar 2010, 7:11 PM -
How to get body element (div) of Panel?
By dbassett74 in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 18 Nov 2009, 1:36 PM -
win.body.getUpdater().startAutoRefresh() doesn't want to update window body element!
By Surgeon in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 20 Aug 2008, 3:38 AM -
[SOLVED] How to use scrollTo() method on body element?
By nugatto in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 12 Aug 2008, 4:44 AM -
BorderLayout on non-body element in IE
By twilliams in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 2 Jul 2007, 8:40 AM


Reply With Quote