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

Keys stick if held when input is unlocked #1

Open
cartertemm opened this issue Apr 22, 2019 · 4 comments
Open

Keys stick if held when input is unlocked #1

cartertemm opened this issue Apr 22, 2019 · 4 comments

Comments

@cartertemm
Copy link

Steps to reproduce:

Lock input with your preferred keystroke, I'm using ctrl+shift+a. then keep a modifier held down, shift is probably the easiest in this example. Now unlock input, keeping said key held.

Actual behavior:

At first everything seems to work, but try arrowing around a document. You'll see text being selected unnecessarily. This is because shift is stuck e.g. still reporting as being held by windows. You can fix by locking and unlocking quickly, making sure that a modifier isn't held this time around.

Expected behavior:

The pressed modifier should be ignored.

@jmdaweb
Copy link
Owner

jmdaweb commented Apr 22, 2019 via email

@jmdaweb
Copy link
Owner

jmdaweb commented May 20, 2019

Hi again.
I have experimented this problem with the add-on disabled, although I can't reproduce it. I think this problem is not related to the add-on. @ivnc what is your opinion about that?

@ivnc
Copy link

ivnc commented May 21, 2019

Hi.

I've also experienced certain problems with stuck keys, unrelated to InputLock. Anyway, I don't know if they are caused by NVDA or Windows itself, nor if this one in special should be andled by this addon to afix it.

Regards.

@cartertemm
Copy link
Author

Hi,
I've also seen this issue elsewhere.
My testing seems to suggest the culprit as the low-level input hook itself. In a nutshell, keys that are currently held when the hook is disabled are left stuck down. My suggestion is to check for and release currently held modifiers when input is unlocked.

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

No branches or pull requests

3 participants