diff options
author | Ananya Sen | 2012-03-28 14:02:57 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-28 14:02:57 -0700 |
commit | 834086b91afc752745128a0c2be4730bf1c7858d (patch) | |
tree | 1dfff28493c115a52479d6ca52705f8a35ddc313 /js/io/ui/file-picker | |
parent | 4c2948447482fe57110e7fd674e362bbbd5814b6 (diff) | |
download | ninja-834086b91afc752745128a0c2be4730bf1c7858d.tar.gz |
detect paste from context menu for new file and save as dialog
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Conflicts:
js/io/ui/new-file-dialog/new-file-location.reel/new-file-location.js
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/ui/file-picker')
-rwxr-xr-x | js/io/ui/file-picker/file-input-field.reel/file-input-field.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/io/ui/file-picker/file-input-field.reel/file-input-field.js b/js/io/ui/file-picker/file-input-field.reel/file-input-field.js index ccb925b9..1ab268c5 100755 --- a/js/io/ui/file-picker/file-input-field.reel/file-input-field.js +++ b/js/io/ui/file-picker/file-input-field.reel/file-input-field.js | |||
@@ -20,6 +20,7 @@ var FileInputField = exports.FileInputField = Montage.create(Component, { | |||
20 | this.eventManager.addEventListener("pickerSelectionsDone", function(evt){that.handleFileInputPickerSelectionsDone(evt);}, false); | 20 | this.eventManager.addEventListener("pickerSelectionsDone", function(evt){that.handleFileInputPickerSelectionsDone(evt);}, false); |
21 | 21 | ||
22 | this.newFileDirectory.addEventListener("keyup", function(evt){that.handleNewFileDirectoryOnkeyup(evt);}, false); | 22 | this.newFileDirectory.addEventListener("keyup", function(evt){that.handleNewFileDirectoryOnkeyup(evt);}, false); |
23 | this.newFileDirectory.addEventListener("paste", this, false); | ||
23 | } | 24 | } |
24 | }, | 25 | }, |
25 | 26 | ||
@@ -63,6 +64,15 @@ var FileInputField = exports.FileInputField = Montage.create(Component, { | |||
63 | } | 64 | } |
64 | }, | 65 | }, |
65 | 66 | ||
67 | handlePaste:{ | ||
68 | value:function(evt){ | ||
69 | var self=this; | ||
70 | setTimeout(function(){ | ||
71 | self.handleNewFileDirectoryOnkeyup(evt); | ||
72 | }, 1); | ||
73 | } | ||
74 | }, | ||
75 | |||
66 | handleNewFileDirectoryOnkeyup:{ | 76 | handleNewFileDirectoryOnkeyup:{ |
67 | value:function(evt){ | 77 | value:function(evt){ |
68 | if(this.newFileDirectory.value !== ""){ | 78 | if(this.newFileDirectory.value !== ""){ |