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

Add key code mode support to popups #42566

Merged
merged 2 commits into from
Jul 31, 2020
Merged

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Jul 30, 2020

Summary

SUMMARY: Interface "Add key code mode support to popups"

Purpose of change

Follow up of the SDL key code mode change to enable key code mode in popups.

Describe the solution

  1. Change preferred input mode of popups from keychar to keycode.
  2. "FORCE_CAPITAL_YN" option is also supported in key code mode by not returning when a non-modified letter is pressed. (Currently qwerty only, similar to the key char mode counterpart)

Testing

Tested in keychar and keycode mode and popups were working correctly. Hotkeys were displayed as characters or modified keys in the respective mode and pressing the hotkeys correctly selected the corresponding options or snapped the cursor to the options.

@anothersimulacrum anothersimulacrum added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Controls / Input Keyboard, mouse, keybindings, input UI, etc. labels Jul 30, 2020
@ZhilkinSerg ZhilkinSerg merged commit d5104d1 into CleverRaven:master Jul 31, 2020
@Qrox Qrox deleted the input-3 branch August 2, 2020 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Controls / Input Keyboard, mouse, keybindings, input UI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants