How can I disable arrow key hijacking on websites?

4

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.

James Watt

Posted 2011-09-18T19:00:59.907

Reputation: 1 759

+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 – 2015-07-31T18:03:04.027

6Disable JavaScript. – Daniel Beck – 2011-09-18T19:15:23.727

Answers

2

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

diyism

Posted 2011-09-18T19:00:59.907

Reputation: 151

1

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.

flubby

Posted 2011-09-18T19:00:59.907

Reputation: 11

0

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.

jakub.g

Posted 2011-09-18T19:00:59.907

Reputation: 4 332

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 – 2012-01-12T15:10:51.777

I should specify, I wasn't telling you to Google something, I was saying that Google is a website that does this. – James Watt – 2012-03-02T20:04:07.830