Drop the whole stack on Ctrl+Q by the physical Control key only

This commit is contained in:
Kacpherek
2026-10-27 11:06:35 +01:00
parent 12e0094f1f
commit a23a7ec35a
+3 -1
View File
@@ -4695,7 +4695,9 @@ impl Game<'_> {
match key {
KeyCode::KeyF if !self.spectator() => self.remote_swap_hands(),
KeyCode::KeyQ if !self.spectator() => {
let all = self.keys.contains(&KeyCode::ControlLeft);
// Minecraft.hasControlDown: the physical keys, so a toggled
// sprint on Left Control does not make Q drop the stack.
let all = self.has_control_down();
self.remote_drop(all);
}
KeyCode::KeyE if self.riding_mount_with_menu() => {