overlayed
overlayed copied to clipboard
Global keyboard shortcuts
Is your feature request related to a problem? Please describe.
It would be nice to have global keyboard shortcuts to control Overlayed features like e.g.
- toggling pined / unpinned mode to hide / show the channel tab header w/ buttons
- opening settings window
- quitting Overlayed
- etc.
What do you think?
Tauri should provide most of the heavy lifting needed to support global shortcuts already, so the implementation should not be too much effort, I think.
Describe the solution you'd like
Ideally, the settings UI added a new section for the actions that can be bound, where the user can set up their bindings. This could be done via actually having a "listener" mode where the user can just press the desired shortcut. Regarding the syntax for storing the shortcuts to the config: Why not just use Tauri's format?
These shortcuts should be - obviously - global, i.e. I can press the shortcut while I'm in a game, for example.
Describe alternatives you've considered
Alternatively (and simpler to implement), we could allow inputting a string that declares the desired shortcut, e.g. something like CtrlAltShift+o
).
Even simpler is to just add an entry in our config.json
without any GUI to start with.