commit a3b285f9c8945133627a07ee2bea218959fd314a
parent 7a2073fc89b764eae87256f3ba8dac51f879303b
Author: Felicitus <felicitus@felicitus.org>
Date: Mon, 2 Jul 2012 19:30:09 +0200
Close exception dialog on enter, fixes #213
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/frontend/js/Dialogs/ExceptionWindow.js b/src/frontend/js/Dialogs/ExceptionWindow.js
@@ -118,6 +118,7 @@ Ext.define('PartKeepr.ExceptionWindow', {
}];
this.callParent();
+
},
setIcon : function(icon) {
this.iconComponent.removeCls(this.iconCls);
@@ -206,6 +207,9 @@ Ext.define('PartKeepr.ExceptionWindow', {
this.show();
this.topContainer.layout.setActiveItem(0);
this.doLayout();
+
+ var keyMap = this.getKeyMap();
+ keyMap.on(Ext.EventObject.ENTER, function () { this.hide(); }, this);
},
statics: {