ProjectVisBug icon indicating copy to clipboard operation
ProjectVisBug copied to clipboard

Show/Hide Shortcut not surfaced in Chrome

Open skube opened this issue 2 years ago • 2 comments

By default, one can Alt + Shift + D to show/hide VisBug. This shortcut can be been be seen while hovering over the extension icon (i.e. the tooltip).

However, when using Google Chrome and modifying the shortcut via chrome://extensions/shortcuts the tooltip doesn't update to reflect the current shortcut.

It's a little thing—I'm not even sure if it's possible to fix in this project. ❤️

skube avatar Apr 19 '22 14:04 skube

oh interesting! let me forward this on to some folks 👍🏻

argyleink avatar Apr 19 '22 17:04 argyleink

Yeah, you can use chrome.commands.getAll() (MDN) to retireve an array of commands that the extension has registered. If there's a collision with a command's shortcut, the shortcut property for that command will be an empty string.

dotproto avatar Apr 19 '22 18:04 dotproto