diff options
author | Ananya Sen | 2012-03-22 10:38:44 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-22 10:38:44 -0700 |
commit | 2557f463c1cfe2d0dd8ea187c184755bd141dab4 (patch) | |
tree | a842cee837b5d0c5a314bdd98b3c96eb98f154da /js/io/ui/file-picker/file-picker-controller.js | |
parent | 61a419422b1a05a779fd9a66c53de3fa8ab5f65a (diff) | |
download | ninja-2557f463c1cfe2d0dd8ea187c184755bd141dab4.tar.gz |
IKNINJA-1302 : For File>New and File>SaveAll dialogs, 'ESC' key now triggers Cancel button and 'Enter' key now triggers OK button. For File picker, the 'ESC' now triggers the Cancel button.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Conflicts:
js/io/ui/new-file-dialog/new-file-workflow-controller.js
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/file-picker/file-picker-controller.js')
-rwxr-xr-x | js/io/ui/file-picker/file-picker-controller.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/io/ui/file-picker/file-picker-controller.js b/js/io/ui/file-picker/file-picker-controller.js index 105dc223..e3276ee6 100755 --- a/js/io/ui/file-picker/file-picker-controller.js +++ b/js/io/ui/file-picker/file-picker-controller.js | |||
@@ -23,6 +23,11 @@ var FilePickerController = exports.FilePickerController = Montage.create(require | |||
23 | } | 23 | } |
24 | }, | 24 | }, |
25 | 25 | ||
26 | pickerNavChoices:{ | ||
27 | enumerable: true, | ||
28 | value: null | ||
29 | }, | ||
30 | |||
26 | filePickerPopupType:{ | 31 | filePickerPopupType:{ |
27 | enumerable: false, | 32 | enumerable: false, |
28 | value: "filePicker" | 33 | value: "filePicker" |
@@ -149,7 +154,7 @@ var FilePickerController = exports.FilePickerController = Montage.create(require | |||
149 | writable:false, | 154 | writable:false, |
150 | enumerable:true, | 155 | enumerable:true, |
151 | value:function(callback, aModel){ | 156 | value:function(callback, aModel){ |
152 | var pickerNavChoices = Montage.create(pickerNavigatorReel); | 157 | var pickerNavChoices = this.pickerNavChoices = Montage.create(pickerNavigatorReel); |
153 | var initUri = aModel.currentRoot; | 158 | var initUri = aModel.currentRoot; |
154 | 159 | ||
155 | //remove extra / at the end | 160 | //remove extra / at the end |