Skip to content

Commit

Permalink
Fix #2337 make right-click focus the search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed May 17, 2021
1 parent 7371edb commit b103a07
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/mezz/jei/input/GuiTextFieldFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,9 @@ public IMouseHandler handleClick(Screen screen, double mouseX, double mouseY, in
if (mouseButton == 1) {
if (!clickState.isSimulate()) {
setText("");
if (worldConfig.setFilterText("")) {
return this;
}
return null;
} else {
return this;
worldConfig.setFilterText("");
}
return this;
}
if (!clickState.isSimulate()) {
if (GuiTextFieldFilter.super.mouseClicked(mouseX, mouseY, mouseButton)) {
Expand Down

0 comments on commit b103a07

Please sign in to comment.