Allow closing the game with ALT F4#698
Merged
codeHusky merged 1 commit intoMCLCE:mainfrom Mar 6, 2026
Merged
Conversation
catweaselirl
pushed a commit
to catweaselirl/MinecraftConsoles
that referenced
this pull request
Mar 13, 2026
S1l3ntStr1ke87
referenced
this pull request
in mclemp/MCLEClient
Mar 17, 2026
Fix issue where visually the HUD shows you have 0 hearts when you dont (https://github.com/smartcmd/MinecraftConsoles/pull/1089) prevent TNT minecarts from exploding if TNT host option is disabled (https://github.com/smartcmd/MinecraftConsoles/pull/921) Fix tamed horses despawning when player moves away (https://github.com/smartcmd/MinecraftConsoles/pull/1057) Fixed DLC map loading / saving, missing chunks (https://github.com/smartcmd/MinecraftConsoles/pull/1114) Fixed Enderman, monster aggro in creative (https://github.com/smartcmd/MinecraftConsoles/pull/1051) Fix missing break statement for minecarts (https://github.com/smartcmd/MinecraftConsoles/pull/930) Flame not working with oneshot arrow (https://github.com/smartcmd/MinecraftConsoles/pull/856) Fix SubEntity hitbox hit detection (https://github.com/smartcmd/MinecraftConsoles/pull/1175) Don't block KEYDOWN messages (https://github.com/smartcmd/MinecraftConsoles/pull/698) Reimplement boat gravity again. (https://github.com/smartcmd/MinecraftConsoles/pull/988) Update to zlib 1.3.2 (https://github.com/smartcmd/MinecraftConsoles/pull/852) Add a fuck ton of Skin Packs
ArchieDxncan
pushed a commit
to ArchieDxncan/LegacyDxncan
that referenced
this pull request
Apr 1, 2026
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.
Description
Allows closing the game with ALT F4 by passing the KEYDOWN messages to DefWindowProc instead of returning 0
Changes
Previous Behavior
Pressing ALT F4 does nothing
Root Cause
KEYDOWN messages were being consumed, blocking Windows from handling the ALT F4 shortcut
New Behavior
Pressing ALT F4 will now close the game
Fix Implementation
Instead of breaking in the KEYDOWN switch case and returning 0, the message is passed to DefWindowProc, letting Windows handle it, making ALT F4 work properly