The short answer is, this is a (small) known bug for non-mac versions of safari. You cannot securely lock all keyboard shortcuts. Perhaps if you were more specific about what other shortcuts are you trying to block? Perhaps some of them will work. for example, cut copies have their own special locking methods. (Although it seems like you probably already know that.)
Are you using something like this?
function blockKeys(e) {
var blocked = new Array('c','x','v');
var keyCode = (e.keyCode) ? e.keyCode : e.which;
var isCtrl;
if(window.event)
isCtrl = e.ctrlKey
else
isCtrl = (window.Event) ? ((e.modifiers & Event.CTRL_MASK) == Event.CTRL_MASK) : false;
if(isCtrl) {
for(i = 0; i < blocked.length; i++) {
if(blocked[i] == String.fromCharCode(keyCode).toLowerCase()) {
return false;
}
}
}
return true;
}
You are not the first to get here with this error.
source
share