From 9f8615e5a977bc1109bbd14c48605180c5ea268f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 2 Nov 2020 14:39:19 +0100 Subject: [PATCH] Prevent mode switch command char spilling over from leaving study mode. --- new2/rogue_chat_nocanvas_monochrome.html | 1 + 1 file changed, 1 insertion(+) diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index a42387f..0708135 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -666,6 +666,7 @@ tui.inputEl.addEventListener('keydown', (event) => { }; } else if (tui.mode == mode_study) { if (event.key === 'c') { + event.preventDefault(); tui.switch_mode(mode_chat); } else if (event.key == 'p') { tui.switch_mode(mode_play); -- 2.30.2