Single key shortcuts for extensions

您的看法很重要
回复
redfox
帖子: 91
注册时间: 2023年 10月 26日 21:15
来自: Czech Republic

Single key shortcuts for extensions

帖子 redfox »

I'd like to define a single key shortcut (F1-F12) to activate one of my extensions.

However, the browser allows only two key shortcuts, with the Ctrl or Alt modifier keys.
头像
catsxp
网站管理员
帖子: 3768
注册时间: 2022年 12月 26日 17:41

Re: Single key shortcuts for extensions

帖子 catsxp »

Single keys have a high probability of accidental triggering and also conflict with system keys
redfox
帖子: 91
注册时间: 2023年 10月 26日 21:15
来自: Czech Republic

Re: Single key shortcuts for extensions

帖子 redfox »

I personally use only single keys for shortcuts.
My setup:

F1 focus URL bar
F2 new tab
F3 search
F4 search next
F5 reload
F6 reload without cache
F10 dev tools

I was wondering if there exists a built-in shortcut to run specific javascript code, but did not find anything.
I have a JS that inverts the page (like dark mode), and would like to assign a single key shortcut for it... Clicking a bookmarklet by mouse is not as convenient.
头像
catsxp
网站管理员
帖子: 3768
注册时间: 2022年 12月 26日 17:41

Re: Single key shortcuts for extensions

帖子 catsxp »

catsxp://settings/accelerator/shortcuts

Cancel the settings first, and then set the desired shortcut functions
It is not recommended to modify the default settings
回复