Can someone tell me how to disable the alert message in the following code?
jQuery(document).ready(function($){
$(document).keydown(function(event) {
var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
if (event.ctrlKey && (pressedKey == "v")) {
alert('Sorry, This Functionality Has Been Disabled!');
//disable key press processing
return false;
}
});
});
We have a chat site and we want to disable CTRL+V, for Firefox users it displays a popup message saying "Sorry, This Functionality Has Been Disabled!" and also it gives an option of "prevent this page from creating additional dialogues" and once you click that, then Users can use CTRL+v
Can we disable this message?