diff options
author | Nivesh Rajbhandari | 2012-04-02 11:07:25 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-02 11:07:25 -0700 |
commit | 6002027d2106586ca0e68c61a3b95282b8a75833 (patch) | |
tree | c1ebb5c048ae068b44222794265538d611c6cff7 /js/io/ui/new-file-dialog/new-file-location.reel | |
parent | eae317815e15a7ffc2dd1bd1e39b208eaa02fd2b (diff) | |
parent | c6de22bf42be90b403491b5f87b1818d9020310c (diff) | |
download | ninja-6002027d2106586ca0e68c61a3b95282b8a75833.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLFileIO
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 | 11 |
1 files changed, 10 insertions, 1 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 fac4c488..02579676 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,11 +23,20 @@ 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(); | 26 | this.newFileName.addEventListener("paste", this, false); |
27 | this.newFileName.focus(); | ||
27 | this.newFileName.select(); | 28 | this.newFileName.select(); |
28 | } | 29 | } |
29 | }, | 30 | }, |
30 | 31 | ||
32 | handlePaste:{ | ||
33 | value:function(evt){ | ||
34 | evt.preventDefault(); | ||
35 | evt.target.value = evt.clipboardData.getData("Text"); | ||
36 | this.handleKeyup(evt); | ||
37 | } | ||
38 | }, | ||
39 | |||
31 | handleKeyup:{ | 40 | handleKeyup:{ |
32 | value:function(evt){ | 41 | value:function(evt){ |
33 | if(this.newFileName.value !== "") { | 42 | if(this.newFileName.value !== "") { |