Skip to content

Addendum to cf640af: fix Ctrl staying stuck in the GUI after Alt+Tab - #5493

Open
Flashmyname wants to merge 1 commit into
multitheftauto:masterfrom
Flashmyname:fix/gui-modifiers-focus-loss
Open

Flashmyname wants to merge 1 commit into
multitheftauto:masterfrom
Flashmyname:fix/gui-modifiers-focus-loss

Conversation

@Flashmyname

Copy link
Copy Markdown
Contributor

Summary

Ctrl or Shift held while the window lost focus stayed pressed for the GUI, since the key-up never reaches it, so the next letter in an edit box acted as a shortcut.

Motivation

Follow-up to #5325, for the Alt+Tab case from #2609.

Test plan

In windowed mode press F8, type hello, hold Ctrl, Alt+Tab out and release everything outside, click back and press a. Master leaves a, with the fix helloa. The #5325 case (Ctrl released while Alt is held) still gives helloa.

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

@Flashmyname Flashmyname changed the title Fix Ctrl staying stuck in the GUI after Alt+Tab Addendum to cf640af: fix Ctrl staying stuck in the GUI after Alt+Tab Oct 3, 2026
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.

1 participant