Hotkey Support
Allow the use of hotkeys. There should be an area in the settings to allow the user to set hotkeys for various actions. Config will need to be updated to store hotkeys.
struct SETTINGS {
int version++;
....
int hotKeyNum;
HOTKEY hotkeys[hotKeyNum];
}
Possible actions include:
- Start / Stop
- Pause / Resume
https://docs.microsoft.com/en-us/windows/desktop/menurc/using-keyboard-accelerators#creating-a-run-time-accelerator-table
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-registerhotkey
Tasks:
- [ ] Write Tests
- [ ] Create Hotkey Listener
- [ ] Update Settings UI
- [ ] Update Config
The use of system-wide hotkeys will not work as it blocks the key from being used in other applications. Need a new approach
https://docs.microsoft.com/en-us/windows/desktop/menurc/using-keyboard-accelerators#creating-a-run-time-accelerator-table
https://docs.microsoft.com/en-us/windows/desktop/learnwin32/accelerator-tables