home · contact · privacy
Prevent mode switch command char spilling over from leaving study mode.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 2 Nov 2020 13:39:19 +0000 (14:39 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 2 Nov 2020 13:39:19 +0000 (14:39 +0100)
new2/rogue_chat_nocanvas_monochrome.html

index a42387f031f08f8906b861779520609a06923b07..0708135759b6d69b5bcec521d65627ac98972b7c 100644 (file)
@@ -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);