Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/com/steve/ai/client/SteveOverlayScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ public void render(GuiGraphics graphics, int mouseX, int mouseY, float partialTi

@Override
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
// K key to close
if (keyCode == 75 && !hasShiftDown() && !hasControlDown() && !hasAltDown()) { // K
// Check if the pressed key matches the configured TOGGLE_GUI key binding
// This now respects user's key configuration instead of hardcoded K key
if (KeyBindings.TOGGLE_GUI != null &&
KeyBindings.TOGGLE_GUI.matches(keyCode, scanCode) && !hasShiftDown() && !hasControlDown() && !hasAltDown()) { // K
SteveGUI.toggle();
if (minecraft != null) {
minecraft.setScreen(null);
Expand Down