Nathan's clever how-to below on forcing a ctrltab shortcut via devtools needs an update, since the extensions page code is now minified from Chrome 65 on. To simplify the process, I wrote a little snippet below that you can copy and paste into the console that lets you then just click a command to set its shortcut to ctrltab.
- Open
chrome://extensions/shortcuts by pasting that into the location bar or going to the main menu > More Tools > Extensions, and then clicking the menu in the top-left to open Keyboard shortcuts.
- Open the devtools console by pressing cmdoptJ on macOS or ctrlshiftJ on Windows/Linux.
- Copy this code:
document.body.onclick = function(e) {
gCT = !window.gCT;
const p = e.composedPath(), cn = p[0].textContent,
s = p.filter(p => p.className == "shortcut-card")[0],
n = s?.children[0].children[1].textContent;
if (n) chrome.management.getAll(es => {
const ext = es.filter(e => e.name == n)[0], {id} = ext;
chrome.developerPrivate.getExtensionInfo(id, i => {
const c = i.commands.filter(c => c.description == cn)[0];
if (c) chrome.developerPrivate.updateExtensionCommand({
extensionId: id,
commandName: c.name,
keybinding: `Ctrl+${gCT ? "" : "Shift+"}Tab`
});
});
});
}
- Paste it into the console next to the > and then press enter.
- Go back to the shortcuts page and click the label of the command you want to set to ctrltab, not the Type a shortcut field. As an example, for the QuicKey tab manager extension, the label is Switch to previous tab.
That's it! ctrltab will appear as that command's shortcut as soon as you click it. If you want another command to get a ctrlshifttab shortcut, just click its label next. (The code will switch between these two shortcuts as you click.) These shortcuts will survive Chrome restarts, since it's the app itself writing to its preferences file.
If you want to use my QuicKey extension to navigate tabs, there's a somewhat simpler process outlined here that doesn't require clicking around in the keyboard shortcuts page. The snippet of JS code used there is also more self-explanatory, in case you're wary of what the blob above is doing.
If you're on Windows, that page also outlines a way of getting something much closer to Firefox's ctrltab menu, using an AutoHotkey script.
2023-03-24: Updated the code to work with Chrome 111+.