added paste path (not yet working on IE)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-06-26 15:57:47 +03:00
parent 74915113bd
commit e23d0efa45

View File

@ -1159,6 +1159,8 @@ var BrowserPrototype = {
}, },
// XXX need to get a container -- UI widget API.... // XXX need to get a container -- UI widget API....
// XXX paste does not work on IE yet...
// XXX handle copy...
// XXX trigger started event... // XXX trigger started event...
__init__: function(parent, options){ __init__: function(parent, options){
var that = this var that = this
@ -1187,6 +1189,15 @@ var BrowserPrototype = {
dom.find('.list').empty() 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... // add keyboard handler...
dom.keydown( dom.keydown(