Skip to content

Commit

Permalink
fix: config closing when pressing inventory key
Browse files Browse the repository at this point in the history
  • Loading branch information
Morazzer committed Dec 7, 2024
1 parent 245f56d commit 62f93a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public boolean keyPressed(final int keyCode, final int scanCode, final int modif
if (hasBeenConsumed.get()) {
return true;
}
if (MinecraftClient.getInstance().options.inventoryKey.matchesKey(keyCode, scanCode)) {
if (!searchField.isFocused() && MinecraftClient.getInstance().options.inventoryKey.matchesKey(keyCode, scanCode)) {
this.close();
return true;
}
Expand Down

0 comments on commit 62f93a4

Please sign in to comment.