Skip to content

Commit

Permalink
Fix unexpected command auto complete
Browse files Browse the repository at this point in the history
  • Loading branch information
nutyworks committed Mar 17, 2024
1 parent fe0db73 commit b8e7eff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmou

@Override
public boolean mouseClicked(double mouseX, double mouseY, int button) {
if (this.commandSuggestor.mouseClicked(mouseX, mouseY, button)) {
if (this.commandEdit.isFocused() && this.commandSuggestor.mouseClicked(mouseX, mouseY, button)) {
return true;
}
return super.mouseClicked(mouseX, mouseY, button);
Expand Down

0 comments on commit b8e7eff

Please sign in to comment.