fix: not being able to close GUIs anymore with autoselected search box mode
Fixes #3530
This commit is contained in:
@@ -9,7 +9,11 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### Changed
|
||||
|
||||
- The Grid detailed tooltip now has a small font size again.
|
||||
- The Grid detailed tooltip now has a small font size again.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed not being able to close GUIs anymore with autoselected search box mode.
|
||||
|
||||
## [1.12.1] - 2023-07-03
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ public class CrafterManagerScreen extends BaseScreen<CrafterManagerContainerMenu
|
||||
|
||||
@Override
|
||||
public boolean keyPressed(int key, int scanCode, int modifiers) {
|
||||
if (searchField.keyPressed(key, scanCode, modifiers) || searchField.canConsumeInput()) {
|
||||
if (searchField.keyPressed(key, scanCode, modifiers)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ public class DetectorScreen extends BaseScreen<DetectorContainerMenu> {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (amountField.keyPressed(key, scanCode, modifiers) || amountField.canConsumeInput()) {
|
||||
if (amountField.keyPressed(key, scanCode, modifiers)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ public class FilterScreen extends BaseScreen<FilterContainerMenu> {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (nameField.keyPressed(key, scanCode, modifiers) || nameField.canConsumeInput()) {
|
||||
if (nameField.keyPressed(key, scanCode, modifiers)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -683,7 +683,7 @@ public class GridScreen extends BaseScreen<GridContainerMenu> implements IScreen
|
||||
|
||||
@Override
|
||||
public boolean keyPressed(int key, int scanCode, int modifiers) {
|
||||
if (searchField.keyPressed(key, scanCode, modifiers) || searchField.canConsumeInput()) {
|
||||
if (searchField.keyPressed(key, scanCode, modifiers)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user