4

I have installed the Keyconfig add-on and configured it to toggle Offline Mode on Firefox, whenever I press Ctrl + Shift + O. It worked fine on previous versions of Firefox (before version 28.0).

However, now, when I have the Developer Tools pane open, pressing Ctrl + Shift + O causes the pane to switch to the Toolbox Options tab and consequently my 'toggle offline' option does not get triggered. (This happens only when the keyboard is 'focused' on the Developer Tools pane; if I'm actually working on a web page (i.e. some web page element is in focus), Ctrl + Shift + O always works regardless of whether the Developer Tools pane is open or not.)

I don't think a plugin or add-on would help in this regard, because the Ctrl + Shift + O shortcut assignment seems to be part of Firefox's Developer Tools pane itself. (After all, Keyconfig, via which I customized that shortcut, is also an add-on!)

As such, I'm looking for a possible way of altering the configurations of the Developer Tools toolbox (or Firefox itself, for that matter) in order to regain control of my keyboard shortcut Ctrl + Shift + O. (Well, I know it would be easier to change my shortcut to a different one, but I'm so accustomed to pressing Ctrl + Shift + O whenever required, that I cannot get rid of it now. :) ) I have been looking up the issue on the web for quite a long time, but still could not arrive at a satisfactory solution.

Any ideas/suggestions are highly appreciated.

4

Extensions you can use with Firefox Quantum: Saka Key, Shortkeys

However any extension seems to be limited and does not work in various situations:

  • privileged pages such as https://addons.mozilla.org/
  • new tab page,
  • internal pages such as about:config,about:newtab,about:addons
  • outside of the webpage such as in the url bar/ search bar
  • before the page has finished loading

So from time-to-time your keyboard shortcuts will stop working, and you might run a totally different command that does something bad. Thanks Mozilla.

Credit: the list of limitations was gathered from the project pages of the two extensions.

  • 1
    Thanks for the detailed clarification! Tired of all the complications (and the demise of Keyconfig) I wrote my own script to handle the keystrokes that I'm interested in - and it seems to work everywhere, including all the cases you have pointed out above :) only caveat being that I have to run it manually every time I restart the browser. – Janaka Bandara Aug 12 '18 at 2:49
  • @JanakaBandara great idea to write your own script - I'm interested in that. Would you be willing to make it easy for other people to use? Maybe you could make a new "example KeyConfig" script without your other utility functions and with some instructions for how people put their own keys? – AdamS Aug 15 '18 at 16:45
  • 1
    Thanks @AdamS! I'll give it a try - in fact I tried to make an extension out of it, some time back, but had to give up eventually due to some extension packaging/installation issues and lack of time. – Janaka Bandara Aug 16 '18 at 3:50
1

Time to refresh the answer. The official support page now is good enough and also points to a new extension to customize kyeboard shortcuts called Saka that's experimental but kind of official and works great for me (Firefox 60 developer edition / Ubuntu Linux)

  • 1
    Thanks - I tried out Saka right after I upgraded to 60, but unfortunately it had the same problem that I had with Keyconfig, i.e. not being able to intercept commands while devtools is open. But worse, Saka didn't offer an option to bind keystrokes to custom scripts (like Keyconfig did - at least back then). – Janaka Bandara Aug 12 '18 at 2:39
1

actually the Customizable Shortcuts Extension is able to change firefox shortcuts (and potentially show conflicts); you should give it a try.

However i'm still looking for a extension-less solution and the ability to totally disable a shortcuts...

Edit

As @louis noted, the customizable-shortcuts add-on has been discontinued (around 2016/2017). The sames features are now found in the shortkeys addon (GitHub).

  • Thanks. I just tried it, but it seems that the extension is picking up the shortcuts set on Keyconfig as well; so it doesn't seem to be able to disable/change just one of the shortcuts. I'll play around with it a bit more and see, though. – Janaka Bandara Mar 27 '15 at 4:05
  • 2
    Extension now was deleted((. – Саша Черных Feb 15 '17 at 16:48

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.