Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua

Home Page:http://www.hammerspoon.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I enable/disable sticky keys programmatically?

NightMachinery opened this issue · comments

I want to disable sticky keys on certain apps. To do so, I need a way to programmatically toggle the sticky keys settings. Is there a way to do this?

Here is the setting in the macOS GUI, for reference:
enter image description here

Related:

Pressing shift for five times quickly toggles this setting. I wonder if doing that via Hammerspoon would work. How can I press the shift key alone?