I'm able to detect the cut, copy, paste
events with the following code
$('#searchInput').bind('cut copy paste', function (e) {
setTimeout("handleMouseEvents();", 10);
});
Is it possible to detect the following events
- delete input box text with mouse
- drag text to input box
- drag text away from input box
- undo action from mouse context menu or form 'Edit' menu
I tried binding on mousedown
and mouseup
, but not working
$('#searchInput').bind('cut copy paste mousedown mouseup', function (e) {
setTimeout("handleMouseEvents();", 10);
});