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

Change: [hotkeys] add missing keycodes for hotkeys.cfg #7850

Merged
merged 1 commit into from Dec 27, 2019

Conversation

@grossws
Copy link
Contributor

grossws commented Dec 1, 2019

Added missing keycodes mapping to _keycode_to_name array
to allow their use in hotkeys.cfg.

Also reordered them according to WindowKeyCodes order.

Signed-off-by: Konstantin Gribov grossws@gmail.com

Added missing keycodes mapping to `_keycode_to_name` array
to allow their use in `hotkeys.cfg`.

Also reordered them according to `WindowKeyCodes` order.

Signed-off-by: Konstantin Gribov <grossws@gmail.com>
{"]", WKC_R_BRACKET},
{"'", WKC_SINGLEQUOTE},
{",", WKC_COMMA},
{"COMMA", WKC_COMMA}, // legacy variant, should be below ","

This comment has been minimized.

Copy link
@LordAro

LordAro Dec 2, 2019

Member

why this addition?

This comment has been minimized.

Copy link
@grossws

grossws Dec 2, 2019

Author Contributor

, is just for consistency with existing -/= and new //;/etc. And COMMA to support configs from previous versions. Maybe it would be better to support it in config reading instead of this hack

@LordAro LordAro merged commit 69f9529 into OpenTTD:master Dec 27, 2019
8 checks passed
8 checks passed
OpenTTD CI #20191201.7 succeeded
Details
OpenTTD CI (Linux commit-checker) Linux commit-checker succeeded
Details
OpenTTD CI (Linux linux-amd64-clang-3.9) Linux linux-amd64-clang-3.9 succeeded
Details
OpenTTD CI (Linux linux-amd64-gcc-6) Linux linux-amd64-gcc-6 succeeded
Details
OpenTTD CI (Linux linux-i386-gcc-6) Linux linux-i386-gcc-6 succeeded
Details
OpenTTD CI (MacOS) MacOS succeeded
Details
OpenTTD CI (Windows Win32) Windows Win32 succeeded
Details
OpenTTD CI (Windows Win64) Windows Win64 succeeded
Details
douiwby added a commit to douiwby/OpenTTD that referenced this pull request Apr 16, 2020
Added missing keycodes mapping to `_keycode_to_name` array
to allow their use in `hotkeys.cfg`.

Also reordered them according to `WindowKeyCodes` order.

Signed-off-by: Konstantin Gribov <grossws@gmail.com>
spnda added a commit to spnda/OpenTTD that referenced this pull request Jun 17, 2020
Added missing keycodes mapping to `_keycode_to_name` array
to allow their use in `hotkeys.cfg`.

Also reordered them according to `WindowKeyCodes` order.

Signed-off-by: Konstantin Gribov <grossws@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.