fwextensions / QuicKey

Jump between recent tabs in Chrome via keyboard shortcuts or a most recently used (MRU) menu.
https://fwextensions.github.io/QuicKey
214 stars 21 forks source link

Ctrl + Tab not working #103

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello,

Trying to follow option #1 here: https://fwextensions.github.io/QuicKey/ctrl-tab/

Getting error in Edge Chromium

chrome.developerPrivate.updateExtensionCommand({
    extensionId: "mcjciddpjefdpndgllejgcekmajmehnd",
    commandName: "30-toggle-recent-tabs",
    keybinding: "Ctrl+Tab"
});

VM25:1 Uncaught TypeError: Cannot read properties of undefined (reading 'updateExtensionCommand')
    at <anonymous>:1:25
(anonymous) @ VM25:1
fwextensions commented 1 year ago

Hmm, possibly they've changed something in the latest Edge. Which version are you on?

fwextensions commented 1 year ago

I just tried this in Edge 113, and it works fine. What are you on?

ghost commented 1 year ago

Version 112.0.1722.68 (Official build) (64-bit)

fwextensions commented 1 year ago

Actually, it sounds like you're not entering that script into the devtools window for the chrome://extensions/shortcuts page. The error you're seeing is what you'd get trying to run it on any other page. If you just enter the name of the function on the correct page, it should show this as the output:

> chrome.developerPrivate.updateExtensionCommand
ƒ updateExtensionCommand() { [native code] }

That function exists on the Extensions shortcuts page. If you try to enter the name on another page, you'll get an error.

ghost commented 1 year ago

That's the fix, thank you. Didn't even notice my mistake. Appreciate your help.