From 277c32b9e60983efc67c9ff0a5519a30fc85f0ed Mon Sep 17 00:00:00 2001 From: boubou19 Date: Thu, 19 Nov 2026 08:13:15 +0100 Subject: [PATCH] Don't toggle handler info widget while typing in recipe search (#1121) (#1143) Co-authored-by: slprime <31038811+slprime@users.noreply.github.com> --- .../nei/recipe/debug/DebugHandlerWidget.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/codechicken/nei/recipe/debug/DebugHandlerWidget.java b/src/main/java/codechicken/nei/recipe/debug/DebugHandlerWidget.java index 14460ca8..72b2e69e 100644 --- a/src/main/java/codechicken/nei/recipe/debug/DebugHandlerWidget.java +++ b/src/main/java/codechicken/nei/recipe/debug/DebugHandlerWidget.java @@ -536,11 +536,7 @@ public class DebugHandlerWidget extends Widget implements IContainerTooltipHandl @Override public boolean handleKeyPress(int keyID, char keyChar) { - if (NEIClientConfig.getBooleanSetting("inventory.guirecipe.handlerInfo") && keyID == Keyboard.KEY_D - && NEIClientUtils.shiftKey()) { - this.showWidget = !this.showWidget; - return true; - } else if (this.record != null) { + if (this.record != null) { if (this.container.handleKeyPress(keyID, keyChar)) { return true; @@ -556,6 +552,13 @@ public class DebugHandlerWidget extends Widget implements IContainerTooltipHandl @Override public boolean onHotkeyPressed() { + + if (NEIClientConfig.getBooleanSetting("inventory.guirecipe.handlerInfo") && Keyboard.isKeyDown(Keyboard.KEY_D) + && NEIClientUtils.shiftKey()) { + this.showWidget = !this.showWidget; + return true; + } + return this.record != null && this.container.onHotkeyPressed(); }