diff options
author | Valerio Virgillito | 2012-03-28 11:56:54 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-28 11:56:54 -0700 |
commit | 3fd2cdb59027b3f973b9165db9db4fdd22026941 (patch) | |
tree | 88c96e3f87729a873af7fc88379f4935e83306ed /js/io/ui/new-file-dialog/new-file-location.reel | |
parent | a25e50a429dfa87522ed7616dcae7b472f3c785c (diff) | |
parent | 3571253acb831860d4bc12466b663655bdac652e (diff) | |
download | ninja-3fd2cdb59027b3f973b9165db9db4fdd22026941.tar.gz |
Merge pull request #131 from ananyasen/integration-candidate
Pull request IKNINJA-1302, IKNINJA-1367, IKNINJA-1361, IKNINJA-1364, IKNINJA-1302, IKNINJA-1266
Diffstat (limited to 'js/io/ui/new-file-dialog/new-file-location.reel')
-rwxr-xr-x | js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js | 3 |
1 files changed, 3 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 0e1e09a4..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 | ||
@@ -32,6 +34,7 @@ var NewFileLocation = exports.NewFileLocation = Montage.create(Component, { | |||
32 | var newFileNameSetEvent = document.createEvent("Events"); | 34 | var newFileNameSetEvent = document.createEvent("Events"); |
33 | newFileNameSetEvent.initEvent("newFileNameSet", false, false); | 35 | newFileNameSetEvent.initEvent("newFileNameSet", false, false); |
34 | newFileNameSetEvent.newFileName = this.newFileName.value; | 36 | newFileNameSetEvent.newFileName = this.newFileName.value; |
37 | newFileNameSetEvent.keyCode = evt.keyCode; | ||
35 | this.eventManager.dispatchEvent(newFileNameSetEvent); | 38 | this.eventManager.dispatchEvent(newFileNameSetEvent); |
36 | } | 39 | } |
37 | } | 40 | } |