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

ImGui popup: switch selected option when lower-case letter is pressed #73420

Merged

Conversation

katemonster33
Copy link
Contributor

@katemonster33 katemonster33 commented Apr 30, 2024

Summary

Bugfixes "Fixes issue where lower-case key does not switch the option in the popup"

Purpose of change

Fixes issue where pressing the lower-cased character of an upper-case popup action does not select the intended button

Describe the solution

modify the correct variable when the key is pressed, the variable being set was re-set every frame, causing the regression.

Describe alternatives you've considered

Testing

Open game, press 'Q' to quit, press 'y' and 'n' keys to change option. rejoice.

Additional context

@github-actions github-actions bot added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Apr 30, 2024
@katemonster33 katemonster33 reopened this May 1, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label May 1, 2024
…. 'y' instead of 'Y') did not highlight the intended key.
@katemonster33 katemonster33 force-pushed the popup_letter_switch_regression branch from 6e0e91b to b1a2520 Compare May 3, 2024 03:11
@Maleclypse Maleclypse merged commit 8998865 into CleverRaven:master May 5, 2024
21 of 26 checks passed
@katemonster33 katemonster33 deleted the popup_letter_switch_regression branch May 5, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants