Skip to content

Instantly share code, notes, and snippets.

@rkrx
Created June 3, 2014 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkrx/2ddf72aa04765ae262fd to your computer and use it in GitHub Desktop.
Save rkrx/2ddf72aa04765ae262fd to your computer and use it in GitHub Desktop.
Ext.define('some.name.space.EditWindow', {
extend: 'Ext.window.Window',
...
initComponent: function () {
var window = this;
this.callParent(arguments);
this.on('show', function () {
window.down('*[hasfocus]').focus();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment