Don't toggle handler info widget while typing in recipe search (#1121) (#1143)

Co-authored-by: slprime <[email protected]>
This commit is contained in:
boubou19andslprime authored and GitHub committed 2026-11-19 08:13:15 +01:00
1 parent fbb0cdc81a
commit 277c32b9e6
1 file changed
+8 -5
@@ -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();
}