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

Hotkey Support

Open Stateford opened this issue 7 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

The use of system-wide hotkeys will not work as it blocks the key from being used in other applications. Need a new approach

Stateford avatar Oct 09 '18 02:10 Stateford

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

Stateford avatar Oct 09 '18 02:10 Stateford