This commit is contained in:
Ellpeck 2015-12-04 22:42:21 +01:00
parent d574ce7fd4
commit 46ad9fee6f

View file

@ -168,7 +168,7 @@ public class GuiBooklet extends GuiScreen{
@Override
public void keyTyped(char theChar, int key){
if(key == Keyboard.KEY_ESCAPE || key == Minecraft.getMinecraft().gameSettings.keyBindInventory.getKeyCode()){
if(key == Keyboard.KEY_ESCAPE || (!this.searchField.isFocused() && key == Minecraft.getMinecraft().gameSettings.keyBindInventory.getKeyCode())){
if(this.parentScreen != null){
this.mc.displayGuiScreen(this.parentScreen);
}