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

1943: Strange behaviour whith some Fly Mode key bindings #1944

Merged
merged 2 commits into from
Jan 3, 2018

Conversation

kduske
Copy link
Collaborator

@kduske kduske commented Jan 1, 2018

Closes #1943.

Using modifiers for fly keys is still a bit dodgy, but there really is no good way to fix this because we cannot query the entire keyboard state reliably.

@kduske kduske requested a review from ericwa January 1, 2018 21:42
@kduske kduske self-assigned this Jan 1, 2018
@kduske
Copy link
Collaborator Author

kduske commented Jan 2, 2018

@ericwa never mind the checks, I cancelled them in error.

Copy link
Collaborator

@ericwa ericwa left a comment

Choose a reason for hiding this comment

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

Tested on macOS a bit with Shift+W and Shift+C bound to up/down.

The up/down movement sticking is fixed, but now I get the system bell sound when I hold down any of WASD or the up/down keys.

if (forward.matches(event)) {

bool anyMatch = false;
if (!m_forward && forward.matchesKeyDown(event)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the !m_forward (same with back, etc) part of the condition should be removed so that key repeats are still consumed. Otherwise I get the macOS bell sound when I hold down W,A,S or D.

@kduske
Copy link
Collaborator Author

kduske commented Jan 3, 2018

Thanks!

@kduske kduske merged commit 486766a into release/v2.0.0 Jan 3, 2018
@kduske kduske deleted the feature/1943 branch January 3, 2018 08:24
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.

2 participants