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(