diff options
author | Ananya Sen | 2012-03-30 16:31:18 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-30 16:31:18 -0700 |
commit | d4a682ddca0248e0dd7d8871dddbd167bd020a18 (patch) | |
tree | 673455ed0df96f8174a195c700b3e534bceed5d9 /js/io/ui/file-picker | |
parent | 834086b91afc752745128a0c2be4730bf1c7858d (diff) | |
download | ninja-d4a682ddca0248e0dd7d8871dddbd167bd020a18.tar.gz |
- using clipboard data directly to avoid using setTimeout
- fixed logical error to trigger OK on Enter key pressed
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 | 7 |
1 files changed, 3 insertions, 4 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 1ab268c5..46e8b386 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 | |||
@@ -66,10 +66,9 @@ var FileInputField = exports.FileInputField = Montage.create(Component, { | |||
66 | 66 | ||
67 | handlePaste:{ | 67 | handlePaste:{ |
68 | value:function(evt){ | 68 | value:function(evt){ |
69 | var self=this; | 69 | evt.preventDefault(); |
70 | setTimeout(function(){ | 70 | evt.target.value = evt.clipboardData.getData("Text"); |
71 | self.handleNewFileDirectoryOnkeyup(evt); | 71 | this.handleNewFileDirectoryOnkeyup(evt); |
72 | }, 1); | ||
73 | } | 72 | } |
74 | }, | 73 | }, |
75 | 74 | ||