I have this basic function for handling the key event, everything works great. However, in Firefox 9.0.1 it seems I can't prevent the default event which is showing of bookmarks.
Is there any solution to prevent the default behaviour in FF?
$(document).keydown(function(evt) {
if (evt.which == 66 && evt.ctrlKey) {
if (evt.preventDefault) {
evt.preventDefault();
} else {
evt.returnValue = false;
}
alert("Ctrl+B pressed");
return false;
}
});