billziss-gh / EnergyBar

Supercharge your Mac's Touch Bar.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[idea] Disable touches while typing

developersteve opened this issue · comments

As someone that sometimes accidentally hits the task bar icons when typing i'm wondering if its possible to have the touchbar icon touches disable while typing.

Did some digging but cant see too much on it either to do it via code or as part of OSX but thought it might be handy. Maybe a transparent overlay over the touchbar screen for 100ms after a keypress or something.

That is a pretty neat idea and could be built into EnergyBar.

The only problem is with finding the correct heuristic; your suggestion of ignoring touchbar taps for a short delay after a keypress is a good one. (Except for the ESC button which should be allowed always.)

A bit of internet research:

One of these could perhaps be used to implement the detection part of your heuristic.

I ended up implementing this. I need to test it for a few days to make sure that it works and solves the problem, but if it does I will commit the changes soon.

Amazing, was planning to do it as well 👍

Thanks! It was a good idea and a nice break from tinkering in the Windows kernel :)

Latest release includes this. Closing.