Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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

share|improve this answer

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.

share|improve this answer
    
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

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .