Using tab in a grid that isn't in autoselected mode will focus on the search box, fixes #829

This commit is contained in:
raoulvdberge
2017-01-12 23:36:06 +01:00
parent 41daeb0ce4
commit 82fb275a3f
2 changed files with 18 additions and 0 deletions

View File

@@ -571,6 +571,8 @@ public class GuiGrid extends GuiBase implements IGridDisplay {
updateJEI();
sortItems();
} else if (keyCode == Keyboard.KEY_TAB && (grid.getSearchBoxMode() == NetworkNodeGrid.SEARCH_BOX_MODE_NORMAL || grid.getSearchBoxMode() == NetworkNodeGrid.SEARCH_BOX_MODE_JEI_SYNCHRONIZED)) {
searchField.setFocused(!searchField.isFocused());
} else {
super.keyTyped(character, keyCode);
}