diff options
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 | 12 |
1 files changed, 11 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..5dd1153d 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,21 @@ 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 | var self=this; | ||
35 | setTimeout(function(){ | ||
36 | self.handleKeyup(evt); | ||
37 | }, 1); | ||
38 | } | ||
39 | }, | ||
40 | |||
31 | handleKeyup:{ | 41 | handleKeyup:{ |
32 | value:function(evt){ | 42 | value:function(evt){ |
33 | if(this.newFileName.value !== "") { | 43 | if(this.newFileName.value !== "") { |