Skip to content

Allow closing the game with ALT F4#698

Merged
codeHusky merged 1 commit intoMCLCE:mainfrom
KaoruBoy:main
Mar 6, 2026
Merged

Allow closing the game with ALT F4#698
codeHusky merged 1 commit intoMCLCE:mainfrom
KaoruBoy:main

Conversation

@KaoruBoy
Copy link
Copy Markdown
Contributor

@KaoruBoy KaoruBoy commented Mar 6, 2026

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

@codeHusky codeHusky merged commit 015c368 into MCLCE:main Mar 6, 2026
1 check passed
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
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.

2 participants