79829384

Date: 2025-11-25 07:19:07
Score: 2
Natty:
Report link

The Shortcut control returns a flat list of all keys pressed. In the Windows API Register Hotkey world, keys are distinct from modifiers, but in the input handling world (the control), they are all just "keys". You need to iterate through that list and sort the keys: if it is a modifier (ctrl, shift, alt, win), add it to a flags enum; otherwise, treat it as the specific trigger key.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aricin