Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix dispatching of system keys #18444

Merged

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Jan 21, 2025

This fixes the bit check for key down and adds a few comments.

Closes #18331

Validation Steps Performed

Printing the resulting INPUT_RECORDs shows both key down and up events when pressing F7. Alt-Space now also works again.

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Windowing Window frame, quake mode, tearout Priority-2 A description (P2) Product-Terminal The new Windows Terminal. labels Jan 21, 2025
const auto hwnd = msg.hwnd;
// Each CoreInput window is a child of our IslandWindow.
// We can figure out the IslandWindow HWND via GetAncestor().
const auto hwnd = GetAncestor(msg.hwnd, GA_ROOT);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, which one did this fix?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can consider this an extra. 😄 When I added this code you asked if we can't figure out the IslandWindow from a CoreInput target and I said no. Turns out we can.

@lhecker lhecker added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 21, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit b33bde1 into main Jan 21, 2025
20 checks passed
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the dev/lhecker/special-key-dispatch branch January 21, 2025 20:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area-Windowing Window frame, quake mode, tearout AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-2 A description (P2) Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alt and F7 don't work in 1.23.3481.0
3 participants