I'm trying to handle PrintScreen paste in a textarea
, which is working everywhere except in Safari. Since Safari is a kind of webkit it has event.clipboardData
object. But in Chrome it is a DataTransfer and works fine. It does not work in Safari, and I'm failed to find the reason in docs.
$(document).ready(function(){
$('.test').bind('paste', function(evt){
console.log(evt.originalEvent.clipboardData.items[0]);
});
});