This PR fixes a bug where eventToHotkeyString was returning a "double modifier" for a key-combination where a modifier key (Control, Alt, Meta, or Shift) is also the event.key.
This PR updates eventToHotkeyString so that the resulting string still presents modifiers in a consistent order.
Although the previous behaviour was likely a bug, this is a breaking change in that it changes the "hotkey string" format when a modifier key is used as the hotkey (the final element in a hotkey string sequence) for example Meta+Shift+Shift becomes Meta+Shift after this change.
resolves #60
This PR fixes a bug where
eventToHotkeyString
was returning a "double modifier" for a key-combination where a modifier key (Control
,Alt
,Meta
, orShift
) is also theevent.key
.This PR updates
eventToHotkeyString
so that the resulting string still presents modifiers in a consistent order.For more details see #60
Screencast of the after
https://user-images.githubusercontent.com/2694/146461487-c3832946-788c-47be-a3f3-eadfe712a5e7.mov
Breaking change
Although the previous behaviour was likely a bug, this is a breaking change in that it changes the "hotkey string" format when a modifier key is used as the
hotkey
(the final element in a hotkey string sequence) for exampleMeta+Shift+Shift
becomesMeta+Shift
after this change.