From 96e79e9d9c07f8e6d0c966e1141830ace475bd56 Mon Sep 17 00:00:00 2001 From: yueh Date: Sat, 16 May 2015 11:34:18 +0200 Subject: [PATCH] Fixes #1389 Enabled repeatable keyboard events --- .../appeng/client/gui/implementations/GuiMEMonitorable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/appeng/client/gui/implementations/GuiMEMonitorable.java b/src/main/java/appeng/client/gui/implementations/GuiMEMonitorable.java index a56cc3d7..7d4f8eba 100644 --- a/src/main/java/appeng/client/gui/implementations/GuiMEMonitorable.java +++ b/src/main/java/appeng/client/gui/implementations/GuiMEMonitorable.java @@ -22,6 +22,7 @@ package appeng.client.gui.implementations; import java.io.IOException; import java.util.List; +import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; import net.minecraft.client.gui.GuiButton; @@ -218,6 +219,8 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi @Override public void initGui() { + Keyboard.enableRepeatEvents( true ); + this.maxRows = this.getMaxRows(); this.perRow = AEConfig.instance.getConfigManager().getSetting( Settings.TERMINAL_STYLE ) != TerminalStyle.FULL ? 9 : 9 + ( ( this.width - this.standardSize ) / 18 ); @@ -383,6 +386,7 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi public void onGuiClosed() { super.onGuiClosed(); + Keyboard.enableRepeatEvents( false ); memoryText = this.searchField.getText(); }