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

Fix issue #3229 Barcode Scanner USB - missing double characters #3992

Merged
merged 1 commit into from
Jul 7, 2017

Conversation

johnjmullen
Copy link
Contributor

@johnjmullen johnjmullen commented Jun 5, 2017

With some USB barcode scanners, repeated characters do not appear in the FreeRDP session.
It looks like this is because the KeyRelease signal is not sent for the first character.

This fixes the problem, but I'm not sure if there is a reason these KeyRelease events need to be ignored

@freerdp-bot
Copy link

Can one of the admins verify this patch?

@hardening
Copy link
Contributor

hum, could you write something in your commit log about this commit ?

@johnjmullen johnjmullen force-pushed the fix-barcode-scanner branch from 83435f4 to 15b3d04 Compare June 5, 2017 20:56
@johnjmullen johnjmullen changed the title Fix issue #3229 Send all KeyRelease events Fix issue #3229 Barcode Scanner USB - missing double characters Jun 5, 2017
With some usb barcode scanners, repeated characters do not appear in the freerdp session.
It looks like this is because the KeyRelease signal is not sent for the first character.
Removing this if check fixes the problem.
@johnjmullen johnjmullen force-pushed the fix-barcode-scanner branch from 15b3d04 to de1868b Compare June 5, 2017 21:07
Copy link
Member

@akallabeth akallabeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it will break stuff. Are you sure that it is the correct fix? Looks to me more like a missing while (pending) type of issue.

@johnjmullen
Copy link
Contributor Author

It's possible that this will break stuff. I'm not sure whether there is a reason to ignore some KeyRelease events. It looks like those lines have always been there, so they might be necessary.

There was a patch in one of the comments on the bug report that sent a key release in xf_event_KeyPress, but I was concerned it might cause issues with modifier keys or holding a key down. I could try that instead if you think it would be better.

@johnjmullen
Copy link
Contributor Author

Is this code meant for disabling auto repeat? I couldn't figure out why it was there, but I didn't think of that until now.

@akallabeth
Copy link
Member

@johnjmullen That may be possible, I'm not quite sure myself, need to dig into that.

@akallabeth
Copy link
Member

@freerdp-bot test

@freerdp-bot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://ci.freerdp.com//job/PullRequestTester/2116/

@akallabeth
Copy link
Member

@freerdp-bot test

@freerdp-bot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://ci.freerdp.com//job/PullRequestTester/2117/

@johnjmullen
Copy link
Contributor Author

This change fixes the Intermec SG20B barcode scanner, and I have not been able to find any problems with the keyboards I have. I think the code I removed might be related to autorepeat, but everything appears to work correctly without it.

Is there anything else that I should test to confirm it will not cause problems?

@johnjmullen
Copy link
Contributor Author

@akallabeth
I asked our QA team to run their keyboard tests against this patch and approved it:
"Approved. Tested French, German, Spanish (LA), Simplified and Traditional Chinese, and Japanese layouts. Also tested hotkey support in Windows 2008 and 2012. The only functions that didn't work were the Calculator and the Play/Pause Media Keys."

Let me know if there is anything else that needs to be tested or if you need me to make any changes.

Copy link
Member

@akallabeth akallabeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked up the history of that particular line, looks like this was in there forever for unknown reasons.

@johnjmullen
Copy link
Contributor Author

@akallabeth Were you going to merge this?

@akallabeth akallabeth merged commit 2f231a8 into FreeRDP:master Jul 7, 2017
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.

4 participants