Hi,
I'm trying for a code that to disable mouse undo/redo options on right-clicking in a text-box. I have a code for binding the undo / redo functions using keypress(ctrl+z/ctrl+y), but i need a code for to prevent these functions using mouse right-click. Below is the code for keypress function. Please help me.
$(window).bind('keydown', function(evt) {
if((evt.ctrlKey || evt.metaKey) && String.fromCharCode(evt.which).toLowerCase() == 'z') {
evt.preventDefault();
}
});