From: Christian Heller Date: Mon, 2 Nov 2020 13:39:19 +0000 (+0100) Subject: Prevent mode switch command char spilling over from leaving study mode. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/test?a=commitdiff_plain;h=9f8615e5a977bc1109bbd14c48605180c5ea268f;p=plomrogue2-experiments Prevent mode switch command char spilling over from leaving study mode. --- 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);