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

Fixes key combinations blocking single keys. #1472

Closed
wants to merge 1 commit into from
Closed

Fixes key combinations blocking single keys. #1472

wants to merge 1 commit into from

Conversation

Radrark
Copy link
Contributor

@Radrark Radrark commented Dec 26, 2020

Fixes space-wizards/space-station-14#2782

This changes the InputManager so that, when a key combination is pressed, the manager adds its subcombinations bindings to the list of binds to be triggered. For example, when you press Ctrl+A, the input manager adds TextSelectAll and MoveLeft to the list, instead of just TextSelectAll. So, if TextSelectAll doesn't get handled, MoveLeft is then triggered.
Also, I fixed the PackedIsSubPattern method but I noticed it isn't useful now. Anyways, I left it there.
I'm fairly new to C# so maybe this isn't the right way to fix the issue idk.

@ShadowCommander
Copy link
Member

Check if something like this PR works before changing stuff inside InputManager, since I'm pretty sure those checks are needed.
space-wizards/space-station-14#2534

@Radrark
Copy link
Contributor Author

Radrark commented Dec 26, 2020

Ok so this causes another issue. Should I close this PR and open another when I actually fix the issue?

@Radrark Radrark closed this Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Left control key issue
2 participants