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

Input system (examples): Key modifiers releases not recognized when window doesn't have focus #1267

Open
markusobi opened this issue Oct 27, 2017 · 0 comments

Comments

@markusobi
Copy link
Contributor

When ALT+TABing out & in on the example applications (i.e. 27-terrain), the camera will no longer move, when pressing WASD until you press ALT again.

Reason:
When holding any modifier key (ALT/SHIFT/...) while the window loses focus (tab out/ click outside), the modifier flags will not be cleared when releasing the modifier key while the window does not have focus. When refocusing the window, the modifier will still be set.

Another way to reproduce:

  • hold shift
  • click out of the window
  • release shift
  • refocus window
  • now SHIFT is still set when pressing any normal key (SHIFT + WASD doesn't move camera and shouldn't)

Tested with Example 27 & 29.

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

1 participant