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

Qt/GameList: Use KeyPress instead of KeyRelease #8723

Merged
merged 1 commit into from Apr 27, 2020

Conversation

seanyeh
Copy link
Contributor

@seanyeh seanyeh commented Apr 4, 2020

This fixes a bug where pressing Enter in the "Do you want to stop the current emulation?" confirmation popup also triggers a KeyRelease in GameList, which starts a new game. This is because the popup closes on KeyPress with the Enter key (I believe because of the Qt autodefault Yes button), which gives focus back to the main window, which receives the KeyRelease event. I have encountered this bug on both Arch Linux and Ubuntu 18.04 -- I'm not sure if this affects other systems.

Listening for KeyPress instead of KeyRelease in GameList fixes this issue. I think it makes more sense this way because we don't want to trigger a key event for the GameList when the key was pressed somewhere else. Please let me know if this fix is acceptable, thanks!

This fixes a bug where pressing Enter in the "Do you want to stop the
current emulation?" confirmation popup also triggers a KeyRelease in
GameList, which starts a new game.
@leoetlino leoetlino merged commit 1ca682e into dolphin-emu:master Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants