diff options
author | Ananya Sen | 2012-03-22 10:46:39 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-22 10:46:39 -0700 |
commit | 7a7ac1d6479155760d99b7ecdf5a8d1f63e25f24 (patch) | |
tree | c20438334b30d969fbed01ceef33fe5dad700fc9 /js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | |
parent | f639ae09013dfb6559891bbbe560bd5303a05f97 (diff) | |
download | ninja-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/new-file-location.reel/new-file-location.js')
-rwxr-xr-x | js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | 2 |
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 | ||