aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/file-picker
diff options
context:
space:
mode:
authorAnanya Sen2012-03-30 16:31:18 -0700
committerAnanya Sen2012-03-30 16:31:18 -0700
commitd4a682ddca0248e0dd7d8871dddbd167bd020a18 (patch)
tree673455ed0df96f8174a195c700b3e534bceed5d9 /js/io/ui/file-picker
parent834086b91afc752745128a0c2be4730bf1c7858d (diff)
downloadninja-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-xjs/io/ui/file-picker/file-input-field.reel/file-input-field.js7
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