Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[idea] Disable touches while typing #47

Closed
developersteve opened this issue Jun 12, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@developersteve
Copy link

commented Jun 12, 2019

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.

@billziss-gh

This comment has been minimized.

Copy link
Owner

commented Jun 12, 2019

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.)

@billziss-gh

This comment has been minimized.

Copy link
Owner

commented Jun 12, 2019

A bit of internet research:

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

@billziss-gh

This comment has been minimized.

Copy link
Owner

commented Jun 13, 2019

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.

billziss-gh added a commit that referenced this issue Jun 13, 2019

@developersteve

This comment has been minimized.

Copy link
Author

commented Jun 13, 2019

Amazing, was planning to do it as well 👍

@billziss-gh

This comment has been minimized.

Copy link
Owner

commented Jun 13, 2019

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

@billziss-gh

This comment has been minimized.

Copy link
Owner

commented Jun 19, 2019

Latest release includes this. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.