Open LifeIsStrange opened 3 years ago
That is a good question, I don't really have an answer, but I think you need some keyboard customizer similar to Karabiner. You basically need to map
Ctrl+Tab
toAlt+Y
or other shortcut that triggers PTS in Chrome. Obviously thisCtrl+Tab
toAlt+Y
combination should work only when Chrome is active. Perhaps you will find some key mapper for Linux here. If you find a solution to the problem, please describe it here and I will add it to the documentation.
If extensions like 'vimiumc' & 'keyboard shortcuts' can override the default shortcuts then why can't you?
I mean I did assign ctrl-j and ctrl-k to this plugin but they seem to only half work. The switcher would disappear right away by switching to the last recent tab even though I was holding onto the ctrl key
@zim0369 thanks for pointing out to KeyboardShortcuts extension. The problem with it as any other Chrome extension is that it can't remap build-in browser shortcuts, it can only add alternatives to them. For example, Ctrl+Tab
is for "Select next tab", with KeyboardShortcuts you can only set an alternative shortcut for that, like Alt+Y
, but the original Ctrl+Tab
will continue to work. My extension is using the same keyboard shortcuts mechanism for triggering its actions like any other extension and this mechanism does not allow a user to remap build-in browser shortcuts 🤷♂️.
You can try to set any of these build-in shortcuts on keyboard shortcuts page with no luck.
@dvdvdmt @zim0369
I think, Ctrl+Tab
is now possible with JS injection irrespective of OS.
chrome://extensions/shortcuts
.Ctrl+Shift+J
to open Chrome Dev Tools.Enter
chrome.developerPrivate.updateExtensionCommand({
extensionId: "cehdjppppegalmaffcdffkkpmoflfhkc",
commandName: "next",
keybinding: "Ctrl+Tab"
});
chrome.developerPrivate.updateExtensionCommand({
extensionId: "cehdjppppegalmaffcdffkkpmoflfhkc",
commandName: "previous",
keybinding: "Ctrl+Shift+Tab"
});
Hope this helps! Might be helpful to add it to the docs aswell.
That is a good question, I don't really have an answer, but I think you need some keyboard customizer similar to Karabiner. You basically need to map
Ctrl+Tab
toAlt+Y
or other shortcut that triggers PTS in Chrome. Obviously thisCtrl+Tab
toAlt+Y
combination should work only when Chrome is active. Perhaps you will find some key mapper for Linux here. If you find a solution to the problem, please describe it here and I will add it to the documentation.