mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-31 19:30:07 +00:00
added paste path (not yet working on IE)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
74915113bd
commit
e23d0efa45
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user