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

BF: Keyboard event keys cleared properly #2442

Merged
merged 1 commit into from May 9, 2019
Merged

Conversation

@dvbridges
Copy link
Contributor

@dvbridges dvbridges commented May 8, 2019

KB was calling clearEvents to clear the key buffer, which only cleared the events list, not the
actual list of keys pressed. This means that keypresses persisted
even with the option to discard previous keypresses before KB onset
was selected. To fix, rather than have clearEvents call _clearEvents,
which other methods also call, the events and key list are cleared
directly.

KB was calling clearEvents, which only cleared the events list, not the
actual list of keys pressed. This means that keypresses persisted
even the option to discard previous keypresses before KB onset
 was selected. To fix, rather than have clearEvents call _clearEvents,
which other methods also call, the events and key list are cleared
 directly.
@coveralls
Copy link

@coveralls coveralls commented May 8, 2019

Coverage Status

Coverage increased (+3.0e-05%) to 49.335% when pulling ed1cde1 on dvbridges:kbClearFix into 63e05e4 on psychopy:master.

Loading

@peircej peircej merged commit 11f9198 into psychopy:master May 9, 2019
2 checks passed
Loading
@dvbridges dvbridges deleted the kbClearFix branch May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants