PDA

View Full Version : On KeyUp on Body element



ojintoad
26 Jan 2011, 11:20 PM
I've noticed something interesting - when I execute:


Ext.onReady(function(){
Ext.getBody().on('keyup', function(){debugger;});
});


I don't hit my breakpoint when pressing keys. However, if I do:



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.

Just wondering. Test on firefox latest stable.