I have a button created by Ext.LayoutDialog.addButton method and would like to fire the click event on enter. But I keep hitting the never ending scope problem (in this case I get fn.call is not a function).
I've tried a dozen ways but instead of pasting all of that I'm just gonna show my most recent attempt.
Code:
dialog.addKeyListener(13, btnNext.fireEvent('click'), btnNext);
the btnNext is define like this:
Code:
var btnNext = dialog.addButton(la_next, function(){...
and the dialog, like this:
Code:
var dialog = new Ext.LayoutDialog("wizard-dlg", { 
	modal: true,
    width:600,
    height:450,
    shadow:true,
	collapsible: false,
	fixedcenter: true,
	resizable: false
});
I couldn't find any examples but if you know any - please post!