Input: Add Ctrl+Q shortcut to drop entire item stack#998
Open
Alezito2008 wants to merge 2 commits intosmartcmd:mainfrom
Open
Input: Add Ctrl+Q shortcut to drop entire item stack#998Alezito2008 wants to merge 2 commits intosmartcmd:mainfrom
Alezito2008 wants to merge 2 commits intosmartcmd:mainfrom
Conversation
Contributor
Author
Minecraft.2026-03-08.22-26-19.2.mp4 |
|
HECK YA |
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
Implements Ctrl+Q shortcut allowing players to drop entire item stacks at once
Changes
Previous Behavior
Pressing the drop key only triggered the drop item action, dropping a single item regardless of any modifier keys.
Root Cause
The input handling logic lacked modifier key detection for the drop action
New Behavior
Pressing Q while holding Control now drops the entire stack of items
Fix Implementation
KEY_CONTROLconstant (mapped to VK_CONTROL) in KeyboardMouseInput.h.MultiplayerLocalPlayer::drop(bool dropAll)to switch betweenDROP_ITEMandDROP_ALL_ITEMSpacket actions based on the boolean parameter.AI Use Disclosure
None
Related Issues