I have a dialog box #acronymPickerDialog that gets destroy on click of the #cancelBtn. however now I notice that when I click the escape button although the box appears to close, it still remains pasted at the bottom of the page. In other words, it's not getting destroy onClick
of the Esc button. I need code that destroys this dialog box when I click on the Esc key.
It's set up like this right now:
events: {
"click #okBtn": "selectAcronym",
"click #cancelBtn": "closeAcronymPicker"
},
closeAcronymPicker: function () {
this.destroy();
}