From bf7b28d53c1d4cf1e926d4414c22311e90bb32c0 Mon Sep 17 00:00:00 2001 From: CrushedPixel Date: Mon, 6 Jul 2015 16:38:56 +0200 Subject: [PATCH] Fixed the "M" key being typed in a TextBox adding/removing marker keyframes --- .../replaymod/events/handlers/KeyInputHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/crushedpixel/replaymod/events/handlers/KeyInputHandler.java b/src/main/java/eu/crushedpixel/replaymod/events/handlers/KeyInputHandler.java index f54f9dc1..5dcf511b 100755 --- a/src/main/java/eu/crushedpixel/replaymod/events/handlers/KeyInputHandler.java +++ b/src/main/java/eu/crushedpixel/replaymod/events/handlers/KeyInputHandler.java @@ -143,8 +143,9 @@ public class KeyInputHandler { public void handleCustomKeybindings(KeyBinding kb, boolean found, int keyCode) { //Custom registered handlers + if(kb.getKeyDescription().equals(KeybindRegistry.KEY_ADD_MARKER) && (kb.isPressed() || kb.getKeyCode() == keyCode)) { - if(ReplayHandler.isInReplay()) { + if(ReplayHandler.isInReplay() && (mc.currentScreen == null || mc.currentScreen instanceof GuiMouseInput)) { ReplayHandler.toggleMarker(); } else if(ConnectionEventHandler.isRecording()) { ConnectionEventHandler.addMarker();