File tree Expand file tree Collapse file tree
loader-common/src/main/java/org/cyclops/cyclopscore/client/gui/container Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .cyclops .cyclopscore .client .gui .container ;
22
3+ import com .mojang .blaze3d .platform .InputConstants ;
34import net .minecraft .client .gui .GuiGraphicsExtractor ;
45import net .minecraft .client .gui .components .EditBox ;
56import net .minecraft .client .input .CharacterEvent ;
1314import org .cyclops .cyclopscore .client .gui .component .WidgetScrollBar ;
1415import org .cyclops .cyclopscore .client .gui .component .input .WidgetTextFieldExtended ;
1516import org .cyclops .cyclopscore .inventory .container .ScrollingInventoryContainer ;
16- import org .lwjgl .glfw .GLFW ;
1717
1818import java .awt .*;
1919
@@ -97,7 +97,7 @@ public boolean charTyped(CharacterEvent character) {
9797
9898 @ Override
9999 public boolean keyPressed (KeyEvent key ) {
100- if (isSearchEnabled () && this .searchField .isFocused () && key .key () != GLFW . GLFW_KEY_ESCAPE ) {
100+ if (isSearchEnabled () && this .searchField .isFocused () && key .key () != InputConstants . KEY_ESCAPE ) {
101101 if (this .searchField .keyPressed (key )) {
102102 this .updateSearch (searchField .getValue ());
103103 }
You can’t perform that action at this time.
0 commit comments