Not sure whether this is technically a bug but it is a backwards-compatibility problem I hit.

In ExtJS 4.0.7 this works:

Code:
Ext.create('Ext.util.KeyMap', document, {
    ...
});
In 4.1.0-beta-1 that throws an error, I've had to change it to this:

Code:
Ext.create('Ext.util.KeyMap', Ext.get(document), {
    ...
});
Is there a better way to do this? Note that this code works even when it isn't wrapped in an Ext.onReady, so it isn't equivalent to using the document body.