From e23d0efa458c26aeabcf92ab40de4e45b82da365 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 26 Jun 2015 15:57:47 +0300 Subject: [PATCH] added paste path (not yet working on IE)... Signed-off-by: Alex A. Naanou --- ui (gen4)/experiments/browse-dialog.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui (gen4)/experiments/browse-dialog.js b/ui (gen4)/experiments/browse-dialog.js index dc2f5eef..ae4ecd20 100755 --- a/ui (gen4)/experiments/browse-dialog.js +++ b/ui (gen4)/experiments/browse-dialog.js @@ -1159,6 +1159,8 @@ var BrowserPrototype = { }, // XXX need to get a container -- UI widget API.... + // XXX paste does not work on IE yet... + // XXX handle copy... // XXX trigger started event... __init__: function(parent, options){ var that = this @@ -1187,6 +1189,15 @@ var BrowserPrototype = { dom.find('.list').empty() } }) + // handle paste... + // XXX does not work on IE yet... + .on('paste', function(){ + event.preventDefault() + var path = event.clipboardData.getData('text/plain') + that.path = path + }) + // XXX handle copy... + // XXX // add keyboard handler... dom.keydown(