diff --git a/src/main/java/de/florianmichael/viaforge/gui/GuiProtocolSelector.java b/src/main/java/de/florianmichael/viaforge/gui/GuiProtocolSelector.java index f95d4a5..e88a0f6 100644 --- a/src/main/java/de/florianmichael/viaforge/gui/GuiProtocolSelector.java +++ b/src/main/java/de/florianmichael/viaforge/gui/GuiProtocolSelector.java @@ -55,6 +55,12 @@ public class GuiProtocolSelector extends GuiScreen { mc.displayGuiScreen(parent); } + @Override + protected void keyTyped(char p_keyTyped_1_, int p_keyTyped_2_) throws IOException { + if (p_keyTyped_2_ == 1) //esc key + this.mc.displayGuiScreen(parent); + } + @Override public void handleMouseInput() throws IOException { list.handleMouseInput();