Disabling hotkeys in firefox addon
问题 Is there a way to disable keyboard shortcuts (hotkeys) in a firefox add-on? 回答1: If your addon has an overlay for browser.xul, an alternative to handling the "keypress" event is to use script in the "load" handler to remove the relevant elements from the browser XUL document like this: var key = document.getElementById("key_openDownloads"); key.parentNode.removeChild(key); In case it's not obvious, this removes the hotkey for opening the download manager. You can see all the keys here: http:/