aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/new-file-dialog
diff options
context:
space:
mode:
authorAnanya Sen2012-03-22 10:46:39 -0700
committerAnanya Sen2012-03-22 10:46:39 -0700
commit7a7ac1d6479155760d99b7ecdf5a8d1f63e25f24 (patch)
treec20438334b30d969fbed01ceef33fe5dad700fc9 /js/io/ui/new-file-dialog
parentf639ae09013dfb6559891bbbe560bd5303a05f97 (diff)
downloadninja-7a7ac1d6479155760d99b7ecdf5a8d1f63e25f24.tar.gz
IKNINJA-1361: autofocus and auto-select file name on open of new file and save as dialog
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/new-file-dialog')
-rwxr-xr-xjs/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js b/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
index 811231e4..fac4c488 100755
--- a/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
+++ b/js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
@@ -23,6 +23,8 @@ var NewFileLocation = exports.NewFileLocation = Montage.create(Component, {
23 this.fileInputField.selectDirectory = true; 23 this.fileInputField.selectDirectory = true;
24 24
25 this.newFileName.addEventListener("keyup", this, false); 25 this.newFileName.addEventListener("keyup", this, false);
26 this.newFileName.focus();
27 this.newFileName.select();
26 } 28 }
27 }, 29 },
28 30