javascript - .bind paste (ctrl+v) handler in jQuery -
this works great in chrome:
$('body').bind({ paste : function() { if(!$('input, textarea').is(':focus')) { alert('you used ctrl/cmd + v'); } } });
however doesn't seem work in firefox esr (haven't tested latest version). adjustments need made?
Comments
Post a Comment