lodestone / hyper-hacks

macOS Sierra hacks using some combination of Alfred 3, Karabiner-Elements, and Hammerspoon
MIT License
148 stars 27 forks source link

why bind to F17 instead of F18? #1

Closed introom closed 8 years ago

introom commented 8 years ago

Hi.

I don't quite understand why you bind to the key F17 instead of F18 in here: k = hs.hotkey.modal.new({}, "F17")

All the remaining in the init.lua file deals with F18.

lodestone commented 8 years ago

@introom: Great question. We actually need two different "keys" so we don't conflict when the event hits. That particular line is setting up a toggle for the sub-modal. Basically we want something unused and not conflicting with the key set up in the karabiner file.

The whole thing is overly complex, honestly. I hope karabiner-elements can catch up in functionality.

introom commented 8 years ago

Got it. Thanks for your reply.