Tuesday, 7 January 2020

Can I change the keyboard shortcuts for tab switching in Firefox?


How do I reassign the keyboard shortcuts for Firefox? I want to use ctrl+right/left to switch tabs. Is there a plugin for this, if Firefox doesn’t natively support this?



Answer



Here is what worked for me in March 2016 (Firefox 45):




  1. Install the keyconfig addon from the keyconfig download page and restart.


    The addon file is unsigned, so to be able to install it, I first had to enter about:config in the address bar and set xpinstall.signatures.required to false.




  2. Go to Addons -> keyconfig -> Preferences.




  3. There are no "Previous Tab" and "Next Tab" entries by default, but you can add them by clicking Add a new key and using the following code snippets (thanks to the author). The "Global" checkbox can be left unchecked.



    • Next Tab: gBrowser.mTabContainer.advanceSelectedTab(1,true);

    • Previous Tab: gBrowser.mTabContainer.advanceSelectedTab(-1,true);




  4. Assign whatever keys to the "Next Tab" and "Previous Tab" actions.




(The Customizable Shortcuts addon didn't work for me, as it didn't have entries for Next Tab and Previous Tab.)


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...