Sort of like preventing websites from disabling your ability to right click. Some websites hijack the up and down arrows on the keyboard and give them a different function than what they normally do (scroll the page).

If there's a way to disable this, please let me know.

  • 6
    Disable JavaScript. – Daniel Beck Sep 18 '11 at 19:15
  • +1 for Disable JavaScript, but this is "global settings", you may want to disable JavaScript on a specific site by using Adblock (or with a more advanced addon NoScript ) – Bilo Jul 31 '15 at 18:03

Firefox current version enables us to "disable javascript to hijack context menu":

Tools/Options/Content/Enable Javascript Advanced/Disable or replace context menus

But there is no feature to "disable javascript to hijack keyboard shortcuts".

ps. I hate twitter website, its keyboard shortcuts conflict with my system-based keyboard shortcuts: J, K, L, I

I've made feature request on bugzilla.mozilla.org, please comment there: https://bugzilla.mozilla.org/show_bug.cgi?id=775002


To really stop this behavior without breaking other JavaScript (i.e. removing keybinds but preserving other page functionality), you need to break the specific JavaScript calls that affect keybinds (and only them). The easiest way to do this is with GreaseMonkey and a pre-made script like this one: Disable website keyboard hooks.


Can you give an example of such page (would be easier to test)?

There are various anti-disablers available as Greasemonkey userscripts, like this, so probably it would be easy to create similar one, presumably by adding something like doc.onkeypress = null; or more elaborate, depending on your needs.

  • Google after you search for something. I don't notice it on a desktop because of my scroll ball, but it's REALLY annoying when I'm on a laptop – James Watt Jan 12 '12 at 15:10
  • I should specify, I wasn't telling you to Google something, I was saying that Google is a website that does this. – James Watt Mar 2 '12 at 20:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.