Clear searchfield on rightclick (#4503)

This commit is contained in:
yueh
2020-07-26 15:28:52 +02:00
committed by GitHub
parent 0528879833
commit 774f88ee90
@@ -60,7 +60,9 @@ public class AETextField extends TextFieldWidget {
@Override
public boolean mouseClicked(final double xPos, final double yPos, final int button) {
if (!super.mouseClicked(xPos, yPos, button)) {
// super will always return false, if button is != 0, however super should still
// be called.
if (!super.mouseClicked(xPos, yPos, button) && button == 0) {
return false;
}