Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description
Keybind#isKeyModis there so a modifier key can't become the main key of a bind while anothermodifier is held, which is what lets you hold Ctrl and Shift and then press the real key. It
checks
KEY_LALT..KEY_RGUI, but the SDL scancodes go LCTRL 224, LSHIFT 225, LALT 226, LGUI 227,RCTRL 228, RSHIFT 229, RALT 230, RGUI 231, so left Ctrl and left Shift fall outside the range. The
GLFW version covered all eight (
GLFW_KEY_LEFT_SHIFT..GLFW_KEY_RIGHT_SUPER), the range just gotshifted in the 26.3 update.
What you see: start binding, hold Shift and tap left Ctrl, and it is bound to
"Shift + Left Control" straight away, since binding happens on release. That bind can't really
fire either, because the Ctrl press itself carries both SHIFT and CONTROL. With right Ctrl it
already waited for the next key.
Related issues
None that I found.
How Has This Been Tested?
In game with
.bind, holding left Shift, tapping left Ctrl and then pressing X. Before:"Bound to Shift + Left Control" as soon as Ctrl was released. After: "Bound to Shift + X".
Checklist: