aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/save-as-dialog.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/ui/save-as-dialog.reel')
-rw-r--r--js/io/ui/save-as-dialog.reel/save-as-dialog.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js
index 1910f30d..dfaac1aa 100644
--- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js
+++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js
@@ -71,6 +71,8 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, {
71 value:function(evt){ 71 value:function(evt){
72 if((evt.keyCode === 13) && !this.okButton.hasAttribute("disabled")){ 72 if((evt.keyCode === 13) && !this.okButton.hasAttribute("disabled")){
73 this.handleOkButtonAction(evt); 73 this.handleOkButtonAction(evt);
74 }else if(evt.keyCode === 27){
75 this.handleCancelButtonAction(evt);
74 } 76 }
75 else if(!!evt._event.newFileDirectory){ 77 else if(!!evt._event.newFileDirectory){
76 this.folderUri = evt._event.newFileDirectory; 78 this.folderUri = evt._event.newFileDirectory;
@@ -93,6 +95,8 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, {
93 if(!this.okButton.hasAttribute("disabled")){ 95 if(!this.okButton.hasAttribute("disabled")){
94 this.handleOkButtonAction(evt); 96 this.handleOkButtonAction(evt);
95 } 97 }
98 }else if(evt.keyCode === 27){
99 this.handleCancelButtonAction(evt);
96 } 100 }
97 } 101 }
98 }, 102 },