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?

jsfiddle


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -