Skip to content

Commit

Permalink
Fix #1129 JEI responds to R and U keys when config gui is open
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Feb 8, 2018
1 parent 807b7c1 commit bd3754e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/java/mezz/jei/gui/overlay/IngredientListOverlay.java
Expand Up @@ -262,11 +262,14 @@ public boolean isMouseOver(int mouseX, int mouseY) {
@Override
@Nullable
public IClickedIngredient<?> getIngredientUnderMouse(int mouseX, int mouseY) {
IClickedIngredient<?> clicked = this.contents.getIngredientUnderMouse(mouseX, mouseY);
if (clicked != null) {
clicked.setOnClickHandler(() -> setKeyboardFocus(false));
if (this.isEnabled()) {
IClickedIngredient<?> clicked = this.contents.getIngredientUnderMouse(mouseX, mouseY);
if (clicked != null) {
clicked.setOnClickHandler(() -> setKeyboardFocus(false));
return clicked;
}
}
return clicked;
return null;
}

@Override
Expand Down

0 comments on commit bd3754e

Please sign in to comment.