257

I would like to customize keyboard shortcuts in Google Chrome.

For example, I would like to map the key combination Ctrl+Shift+W to the command "Close Other Tabs" instead of right-clicking on a tab (default command).

Is there any setting in Chrome to set this combination to that command?

8
  • 3
    Have you tried searching the Chrome Web Store? If not, here's a link to a shortcuts manager extension - chrome.google.com/webstore/detail/shortkeys/…
    – VenkatH
    Commented Nov 1, 2012 at 9:19
  • 1
    @VenkatH Thank you for the hint ! Unfortunately, "Close Other Tabs" is not a command supported by the "Shortkeys" extension, so it does not fill my need.
    – wip
    Commented Nov 2, 2012 at 1:46
  • 3
    Is there a way to remove keyboard shortcuts? I want to use the shortcuts built into Tumblr but it conflicts with the ones already built into chrome and none of the extensions I could find edit already existing ones...
    – Cyberson
    Commented Apr 22, 2015 at 0:14
  • 1
    @wil Almost 3 years later, the "Close Other Tabs" command exists now in Shortkeys. Commented Jul 28, 2015 at 3:32
  • 7
    For Windows users looking for an answer that just works, this is the one: AutoControl Shortcut Manager
    – Tim
    Commented Feb 22, 2020 at 0:09

14 Answers 14

132

If you're on a Mac then you can do this with the Mac System PreferencesKeyboardShortcuts. https://support.apple.com/guide/mac-help/create-keyboard-shortcuts-for-apps-mchlp2271/13.0/mac/13.0

Here are my current settings:

enter image description here

Simplified procedure:

  1. Open System Preferences -> Keyboard -> Shortcuts tab
  2. From the left, click App Shortcuts.
  3. Click +
  4. Choose 'All Applications' as the app
  5. Choose 'Shut Down...' as the command
  6. Put in whatever shortcut you want.
  7. Restart the app you added the shortcut for
13
  • 11
    oh, i get it. u need to know that exact titles from somewhere Oo Commented Feb 13, 2019 at 14:32
  • 12
    For Windows users, the AutoControl shortcut manager extension let's you customize Chrome's shortcuts as well as create your own shortcuts.
    – GetFree
    Commented Apr 3, 2019 at 17:08
  • 3
    Where can I find a full list of these, e.g. to replace Cmd+L?
    – Sinjai
    Commented Apr 30, 2019 at 17:02
  • 4
    @Sinjai the list is from the app menu bar.
    – cmcginty
    Commented May 2, 2019 at 3:13
  • 4
    Don't have any shortcuts for chrome
    – Bolein95
    Commented Apr 18, 2020 at 5:37
69

Not entirely the answer for general shortcuts, but still relative and somewhat cumbersome to find, chrome://extensions/shortcuts allows you to customize behaviors from a shortcut. I'm sure you could find/make an extension to reroute / transpose all of the shortcuts you want to use to control chrome as you see fit.

enter image description here

9
  • 3
    This is pretty light on the "how"; it's more of a suggestion for an area to investigate in order to create a solution. Can you flesh it out? As-is, it would probably be more appropriate as a comment. From review
    – fixer1234
    Commented May 6, 2018 at 2:40
  • 3
    This is just for extensions, but it also lets you override built-in shortcuts, like Ctrl + Q.
    – nmrugg
    Commented Aug 20, 2018 at 0:07
  • 2
    Be careful and use the exact link: chrome://extensions/shortcuts Without http...
    – Josem
    Commented Mar 4, 2019 at 17:07
  • 3
    @JoelAZ I found this answer looking for a way to change uBlock Origin extension shortcuts, so yes this answer is useful
    – golimar
    Commented May 10, 2019 at 10:19
  • During the process of customizing shortcuts, you need to be aware of what shortcuts are already assigned or designated via extensions. This page will give you that oversight. Commented Aug 4, 2020 at 20:37
25

This has been possible for quite some time already, at least on Windows.
There's a new kind of extensions for Chrome called "native extensions" that can customize Chrome shortcuts and other cool things.

AutoControl Shortcut Manager is exactly for this purpose.

There are no restrictions on the shortcuts you can create or customize. You can even disable shortcuts if you assign no action to them.

In the specific case asked in the question, Ctrl+Shift+W for closing "other tabs" looks like this:

enter image description here

6
  • 10
    Great extension. However, it's supported from Windows XP to Windows 10. No support for other OSs so far.
    – Mercalli
    Commented Jun 11, 2019 at 7:57
  • 3
    AutoControl Shortcut Manager requires a separate Windows executable installation. VirustTotal flags that executable as Adware. No thanks. Commented May 17, 2020 at 15:41
  • 1
    @LesterBuck, I've just checked VirusTotal and it says 6 out 72 engines detected the file. And none of those 6 engines are prominent antivirus solutions. Can you share a link to the VT results you saw?
    – Richt
    Commented May 19, 2020 at 11:01
  • 1
    @Richt 5/68 now: virustotal.com/gui/file/… Commented Sep 6, 2020 at 13:53
  • 6
    This should be marked as the answer, at least for Windows users. Finally, I don't have to reach around to press Ctrl+W to close a tab with my right ('navigation') hand (I've added Ctrl+/). Commented Feb 7, 2021 at 10:06
11

It looks like this feature is 'on the way', but it is not in the main release cycle yet. I found an article that describes the feature being implemented in the development build, #22. Or at least partially to allow some features to be shortcut-ed Ref: Create Keyboard Shortcuts for Chrome Extensions

That post mentions an experimental API for more types of actions linked to shortcuts which can be found.. here: http://developer.chrome.com/extensions/experimental.commands.html

Of course, that's all in the development stage still.


This is partially possible with the commands API which has been out for a couple years. http://developer.chrome.com/trunk/apps/commands.html

It's pretty restricted still since you can’t replace the ones that are supplied by the browser and I’m not sure how much is exposed there for things like developer tooling.

8
  • 1
    @wil update: this has been in Chrome for some time, just scroll down in the extensions page and click "Keyboard Shortcuts"
    – skeggse
    Commented Jun 21, 2014 at 1:06
  • 13
    @distilledchaos: That link only allows you to set keyboard shortcuts for apps and extensions, not for the browser in general.
    – bergie3000
    Commented Aug 27, 2014 at 18:35
  • Going with cVim extension, I guess - I realize that isn't going to be an option for many people, but...it is for me!
    – dsummersl
    Commented Aug 25, 2017 at 16:17
  • 7
    @MikeyE, This is now finally possible through something called "native extensions". Here is one such extension that can customize Chrome's shortcuts once and for all: AutoControl Shortcut Manager
    – GetFree
    Commented Apr 5, 2019 at 20:33
  • 5
    (how long will it take Google to provide the trivial feature of customizeable keyboard shortcuts...) Commented Jun 21, 2019 at 20:47
6

Update: As of Feb 2017, this plugin is no longer available.

There is a Chrome plugin called Shortcut Manager which can do this.

I just used it to create shortkeys for j and k to scroll up and down. It also has 'close other windows' available to map to a short-key.

6
  • I installed the plugin, unfortunately for some reason it is impossible to set the combination I want "Ctrl+Shift+W" into the input box (when I try to, the pop-up asking me if I want to leave the page appears).
    – wip
    Commented Apr 10, 2013 at 2:13
  • 3
    This doesn't seem to override the default functionality. I am trying to add a ALT+ENTER ".com" shortcut for the URL bar (for subdomains) and it still uses the default functionality of doing a search.
    – Gaʀʀʏ
    Commented Jun 21, 2014 at 13:22
  • I added Ctrl+G to open favorite page , earlier it seemed not working but after restarting chrome it started working. Ctrl+G has default function of searching next in chrome , this extension overrides it.
    – Vins
    Commented Feb 27, 2015 at 7:20
  • This doesn't work for Mac when I try to set "Ctrl+Page Up" to go to the previous tab. (Actually Cmd+Page Up since I switched those two keys) Commented Apr 3, 2015 at 19:45
  • 6
    The plugin link is 404 now.
    – Eric
    Commented May 20, 2019 at 10:44
5

The extension in Charley Ramm's answer no longer exists, but I found a different one: Shortkeys

Add to Chrome, press options. I'm using it to bind forward/backwards keys to my Naga Hex V2, which is not supported on linux at the moment. The reviews suggest that some people have problems using it. It works fine for me, Linux Mint 18 + Dell multimedia keyboard.

Restart Chrome after changing the keybindings.

6
  • Shortkeys is nice, but it doesn't work on the new tab page, or when the address bar is in focus
    – Casebash
    Commented Mar 19, 2018 at 0:06
  • Shortkeys is discontinued (today being 2021.02.17) Commented Feb 7, 2021 at 9:55
  • @DadeMcDade do you have a source for this? The website is still up and the extension available to install. I no longer use Chrome nor the extension so I can't check for myself. I would edit my answer if this is true.
    – marts
    Commented Jul 18, 2021 at 22:27
  • I can't say that I remember. But you're right - I just checked, and it's available. Commented Jul 20, 2021 at 8:50
  • Just installed Shortkeys and it works with NixOS 21.05 and Gnome 4. It also allows to create new tabs, or change the previous tab and next tab shortcuts. To do that, go to: chrome://extensions/shortcuts and Shortkeys will have added a bunch of options that can be remapped.
    – jun
    Commented Sep 22, 2021 at 17:52
5

Go to this website: https://www.autocontrol.app/

And download and install their chrome extension, everything is done automatically.

DEAD Simple to add any custom shortcuts from keyboard to mouse.

All u do is add a new function, then click a button, then you tell what this button does on chrome.

1
  • 5
    This is currently for Windows only.
    – P A N
    Commented Jun 26, 2020 at 10:24
4

As described in the comments of another answer, I am also wanting to disable the "Cmd+Shift+W" shortcut for close window, and incidentally the similar shortcut that appears when I disable the first, which now stands for "Close All".

  • I simply went to the Mac's Keyboard preference pane, in the "Shortcuts" tab, in "App Shortcuts" section, and went to create new shortcut mappings.
  • I made these for Google Chrome and chose that as the first parameter, but I guess you could fix a similar problem in any other application by selecting the one you want instead.
  • I then proceeded to name the menu entry that I wanted to replace, such as those I mentioned above.
  • Lastly, I assigned it a complex key combination, one that I would hopefully never accidentally press in the future.

It's not the best approach, and I am currently reading into another question and answer "How to disable keyboard shortcuts in mac os x" which may remove the shortcut completely, but it works well enough through the existing system interface without having to install any additional software as a limited Google Chrome Web Extension or system application.

3

I use BetterTouchTool on macOS:

enter image description here

1
  • 2
    Welcome to Super User. Please read How to Recommend Software then edit your answer to include at least the minimum required information (the items in bold). Posts without this information may be subject to deletion. Thanks for contributing. Commented May 2, 2019 at 9:34
1

I found a couple ones working on my Mac:

Simple one: https://chrome.google.com/webstore/detail/tab-manager-shortcuts/oofoadncochbkbpebpbndghocapamchi

More options: https://chrome.google.com/webstore/detail/keyboard-shortcuts/lplcmnhgijkkmflbmhabnccgelffpnog

1
  • simple and do not need any permission, this rocks and should be the accepted answer, most of the other extensions ask for 1000 permission to change the shortcuts!!! Commented May 27, 2023 at 13:42
1

For Windows you can remap keys for specific applications (e.g. Chrome) using Microsoft PowerToys - https://docs.microsoft.com/en-us/windows/powertoys/

e.g. I swapped my Alt and Ctrl keys for all applications, which broke the Alt+D shortcut in Chrome, so remapped it to Ctrl+L to select the address bar url -

shot

shot2

1
  • 1
    PowerToys to the rescue to fix bad ui Commented Jun 12, 2023 at 1:47
1

If you want to some high frequency Chrome shortcuts using by a keyboard, I really recommend you VimiumC. It is an improved version of Vimium.

Install here: Vimium C - All by Keyboard Vimium C - All by Keyboard

The source and issue are here: Vimium C - All by Keyboard (GitHub)

Vimium C Options

  • it is so easy to set shortcut to control your chrome, like map <c-w> closeOtherTabs combination Ctrl + W to the command "Close Other Tabs"
  • and key "z" and "c" made by myself for go left and right tab
  • and key "s" also made by myself for selected words on webpage for Google search in another tab
  • VimiumC already set key "x" as close tab and "X" as re-open closed tab by default

It is so convenient, simple and fast, and is all in your fingers.

But, the bad part is, VimiumC can not run on the Chrome safe page, like "chrome://" and "https://chrome.google.com/" or blank page and unloaded pages which need JavaScript.

0

While I know this isn't the exact solution you were looking for it may be helpful to some as it was to me. This Chrome extension make many advanced shortcuts possible via the use of mouse gestures: CrxMouse Chrome™ Gestures

1
  • 1
    Hi user, welcome to Super User! Questions that are essentially links are discouraged. Can you explain why that is the solution, maybe include screen shots of it in action, etc? Commented Dec 14, 2018 at 20:18
0

https://arc.net/ is a Chromium browser that supports changing shortcuts in its settings. enter image description here

You must log in to answer this question.

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