waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

Strip ~ and @ from modifiers before matching them #171

Closed TTWNO closed 1 year ago

TTWNO commented 1 year ago

Had an issue where a keycombo like ~control + left was registering as just the left key without modifiers. This makes sure to strip any tildes or at signs before matching the modifier to the table.

ajanon commented 1 year ago

Thanks for your contribution!

If I understand this properly, this avoids trying to match ~control instead of control as a modifier key?

TTWNO commented 1 year ago

Yep, that's right!

TTWNO commented 1 year ago

Polite poke

Shinyzenith commented 1 year ago

@ajanon since I'm not well versed with the parser, would you like to merge? The code looks fine to me.