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
 | 
					### 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
 | 
					## [1.12.1] - 2023-07-03
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -164,7 +164,7 @@ public class CrafterManagerScreen extends BaseScreen<CrafterManagerContainerMenu
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public boolean keyPressed(int key, int scanCode, int modifiers) {
 | 
					    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;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -81,7 +81,7 @@ public class DetectorScreen extends BaseScreen<DetectorContainerMenu> {
 | 
				
			|||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (amountField.keyPressed(key, scanCode, modifiers) || amountField.canConsumeInput()) {
 | 
					        if (amountField.keyPressed(key, scanCode, modifiers)) {
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,7 +101,7 @@ public class FilterScreen extends BaseScreen<FilterContainerMenu> {
 | 
				
			|||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (nameField.keyPressed(key, scanCode, modifiers) || nameField.canConsumeInput()) {
 | 
					        if (nameField.keyPressed(key, scanCode, modifiers)) {
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -683,7 +683,7 @@ public class GridScreen extends BaseScreen<GridContainerMenu> implements IScreen
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public boolean keyPressed(int key, int scanCode, int modifiers) {
 | 
					    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;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user