Quote:
Originally posted by x_goose_x
Don't forget about F5.
|
Bah, only for Windows users.
Personally, I dislike any site which attempts to disable any keyboard or mouse action related to the GUI.
To do it though, maybe something like:
document.onkeydown = document.onkeypress = document.onkeyup = function(evt) {
var event = evt || window.event;
if (String.fromCharCode(event.which || event.keyCode).toLowerCase() == 'r' && event.ctrlKey) {
if (typeof event.stopPropagation != 'undefined') {
event.stopPropagation();
event.preventDefault();
}
else {
event.returnValue = false;
event.cancelBubble = true;
}
}
}
No guarentees though.