Skip to content

Commit

Permalink
change: Fix parent screen focus bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Jan 27, 2024
1 parent f624cfb commit 0ae6242
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
return this.prompt.mouseClicked(mouseX, mouseY, button);
}

boolean clicked = super.mouseClicked(mouseX, mouseY, button);

if (!clicked) {
this.setFocused(null);
return true;
}

return clicked;
return super.mouseClicked(mouseX, mouseY, button);
}

@Override
Expand Down

0 comments on commit 0ae6242

Please sign in to comment.