Display-Lock icon indicating copy to clipboard operation
Display-Lock copied to clipboard

Hotkey Support

Open Stateford opened this issue 5 years ago • 2 comments

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

Stateford avatar Sep 20 '18 07:09 Stateford