jtroo / kanata

Improve keyboard comfort and usability with advanced customization
GNU Lesser General Public License v3.0
3.21k stars 131 forks source link

Feature request: remove dependency on AutohotKey for EnableUIAccess #1125

Open lurebat opened 5 months ago

lurebat commented 5 months ago

Is your feature request related to a problem? Please describe.

The EnableUIAccess trick to let kanata run in admin mode requires AHK2 and relies on a script that doesn't seem to be written for it. (Registry items were missing in my install).

From a quick glance, the script only edits stuff in the registry and calls some winapis.

It's a bit annoying to have to download an entire new software just for this trick in kanata.

Describe the solution you'd like.

RIIR!

Really this small utility feels perfect to be a small cmd helper in rust.

Of course this would come with the usual advantage of ergonomics, testability, etc.

Describe alternatives you've considered.

Just installing autohotkey

Additional context

If nobody is interested I can try giving it a shot.