dbalatero / HyperKey.spoon

This library allows you to bind keys to a modifier, and shows you a popup overlay of all your key binds when you hold down the modifier key.
22 stars 3 forks source link

Add ability to distinguish left and right modifiers? #1

Closed es183923 closed 3 years ago

es183923 commented 3 years ago

It would be nice to be able to use hyper key with extra modifiers.

dbalatero commented 3 years ago

That's not a super high priority feature for me, but if you wanted to submit a PR I'd merge it.

You'd want to use the raw flags instead:

but the caveat is that you can't break the current interface for building a HyperKey, which currently takes a table of modifiers like so:

hyperKey = HyperKey:new({'cmd','shift','ctrl','alt'})
-- or
hyperKey = HyperKey:new({'cmd','shift','ctrl','alt'}, { ...extra options })

You'd need to figure out how to keep this API shape while making left/right modifiers "work".

If you're up for the work let me know. If you're not up for it, please also let me know so we can close the ticket out.

es183923 commented 3 years ago

I'll take a look into doing it. I might be have time to do it, but I'm not sure.