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

Add a sleep on start, add a scan function and tweak decide -> shift. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sstanfield
Copy link

The sleep is to give X a chance to get the enter release event which
will solve some issues (enter repeat and possibly disabling a laptop
trackpad at least). Kinda of a hack but not sure how else to solve
this, since the press and release come from different keyboards X does
not seem to connect them.
Add a --scan option which will test all the files in /dev/input to try
to find keyboards and print info about any found.
Made some changes to the decide -> shift state change. It was possible
to have a press sent without a release (not a common case but I hit it a
couple of times) and this will cause some laptop trackpads to be
disabled (X seems to be disabling the trackpad because it thinks a key is being
pressed).

The sleep is to give X a chance to get the enter release event which
will solve some issues (enter repeat and possibly disabling a laptop
trackpad at least).  Kinda of a hack but not sure how else to solve
this, since the press and release come from different keyboards X does
not seem to connect them.
Add a --scan option which will test all the files in /dev/input to try
to find keyboards and print info about any found.
Made some changes to the decide -> shift state change.  It was possible
to have a press sent without a release (not a common case but I hit it a
couple of times) and this will cause some laptop trackpads to be
disabled (X seems to be disabling the trackpad because it thinks a key is being
pressed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant