ewerybody / a2

Autohotkey module managing and developing framework.
GNU General Public License v3.0
63 stars 10 forks source link

sort hotkey modifiers to identify changes #172

Closed ewerybody closed 5 years ago

ewerybody commented 6 years ago

Expected Behavior

Alt+Ctrl+D should always turn into Ctrl+Alt+D Alt+Ctrl+D should evaluate to be equal to Ctrl+Alt+D

Current Behavior

There is no check about the order of the modifier keys. Order changes are regarded as difference. Making the system save user settings although user "resets" the hotkey.

Possible Solution

Implement some logic to A2Hotkey.set_key extracting modifiers and sorting them like ordered on the bottom left of a keyboard:

  1. Ctrl
  2. Win
  3. Alt
  4. Shift

with the left/right variants accordingly