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# - Avoiding duplicate methods for Task and Task<T> -

javascript - Which segment of a polyline was clicked? -