this post was submitted on 02 Aug 2023
18 points (100.0% liked)

Firefox

17799 readers
40 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

Today I noticed that in the Page Info --> Permissions tab (which you access through padlock --> Connection secure --> More information beside a page's URL) there is an Override keyboard shortcuts permission setting, with default set to "Allow". Interesting, because some sites use shortcuts that I'd rather avoid.

I checked the Settings, but I see no entry to set the default to "Block". Is there some entry in about:config for this?

Cheers!

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

i would guess this permissions.default.shortcuts

values:

ReservedKey_False = 0,   (default) 
ReservedKey_True = 1,
ReservedKey_Unset = 2,

ref. https://searchfox.org/mozilla-central/source/dom/events/KeyEventHandler.h#39

going by the test files , i'd say you need to set the value to 2 to globally lock it.

ref. https://searchfox.org/mozilla-central/source/browser/base/content/test/permissions/browser_permissions.js#338

[–] [email protected] 1 points 1 year ago (1 children)

Thank you so much, that did it!! I hope they'll put this option explicitly in the settings, in the future.

[–] [email protected] 3 points 1 year ago

Thank you so much, that did it!!

👍