I have a function I use to intercept CTRL+V and COMMAND+V:
function paste() {
clip.val('').focus();
//wait until Browser insert text to textarea
self.oneTime(100, function() {
self.insert(clip.val());
clip.blur().val('');
});
}
clip is hidden textarea, right now it's hidden using black div on top of it (the only way I found to fix Andorid). And in keydown event I call that function:
} else if (e.which === 86) {
//CTRL+V
paste();
return true; // I return true because I have return false at the end
// of keydown event
}
But seems that it don't work on MacOSX Safari as you can check in this issue on github. Anybody know why is that happening and how to fix it?