The one thing I really can't stand about macOS is "Secure Input". It won't let you use something like TE or KM to input a password. You're forced to copy and paste.
As far as I understand, you can't disable that feature either... because securiteh! :/
It actually will. The problem is that when secure input is enabled, you can’t trigger a macro from the keyboard, because the daemon isn’t allowed to intercept keystrokes. But if you can trigger the macro some other way, like through a mouse button or a MIDI message, keystrokes can be sent just fine, even into a password field.
Edit: upon reflection, not much actually: https://github.com/kbd/setup/blob/2eaeaecf76c22be3ecef5c8563...
I wrote two articles on using global hotkeys with hammerspoon:
https://ohdoylerules.com/tricks/hammerspoon-hyper-key/ https://ohdoylerules.com/tricks/hammerspoon-number-pad-short...
One think you can even do is detect which devices are being used and handle shortcuts differently. You can write a full on workflow that can be triggered with a keyboard shortcut if you’re using hammerspoon.
I recently switched from a homecooked keyboard "expansion" plugin to using Espanso but it can do that as well!
But anyway, I just wanted to see if you were aware of it.
I'm going to peek at yours now and see if there's anything I should crib.
Edit: Found this answer from the author of the non-zig version, though it doesn't actually explain much https://github.com/koekeishiya/skhd/issues/151
Carrok•4mo ago