aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/file-picker
diff options
context:
space:
mode:
authorAnanya Sen2012-03-22 14:49:17 -0700
committerAnanya Sen2012-03-22 14:49:17 -0700
commit80ceeffeb3dd3227008714b8b56383f9556ff409 (patch)
treee3c385228659997ee36770d7c5ee6987442aec6b /js/io/ui/file-picker
parent87cf1d7d899bb60581d5e5c6c7ba678620c7148e (diff)
downloadninja-80ceeffeb3dd3227008714b8b56383f9556ff409.tar.gz
KNINJA-1302 : refactored fixed as per request
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/file-picker')
-rw-r--r--js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
index 3cf6fc5a..945b0301 100644
--- a/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
+++ b/js/io/ui/file-picker/picker-navigator.reel/picker-navigator.js
@@ -261,8 +261,17 @@ var PickerNavigator = exports.PickerNavigator = Montage.create(Component, {
261 this.okButton.addEventListener("click", function(evt){that.handleOkButtonAction(evt);}, false); 261 this.okButton.addEventListener("click", function(evt){that.handleOkButtonAction(evt);}, false);
262 this.cancelButton.addEventListener("click", function(evt){that.handleCancelButtonAction(evt);}, false); 262 this.cancelButton.addEventListener("click", function(evt){that.handleCancelButtonAction(evt);}, false);
263 263
264 this.element.addEventListener("keyup", function(evt){
265 if(evt.keyCode == 27) {
266 if(that.application.ninja.filePickerController.pickerNavChoices !== null){
267 that.handleCancelButtonAction();
268 }
269 }
270 }, true);
271
264 //ready to show picker now 272 //ready to show picker now
265 this.element.style.visibility = "visible"; 273 this.element.style.visibility = "visible";
274 this.element.focus();
266 } 275 }
267 }, 276 },
268 277