home · contact · privacy
Prevent switch_to_password key from entering password input.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 10 Nov 2020 02:48:19 +0000 (03:48 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 10 Nov 2020 02:48:19 +0000 (03:48 +0100)
rogue_chat_nocanvas_monochrome.html

index e6ba4a72ad2b25271a9f5a42fad616e9ec48dd83..81c1e13ab713b92575e503cea011d661d4992933 100644 (file)
@@ -793,6 +793,7 @@ tui.inputEl.addEventListener('keydown', (event) => {
           } else if (event.key === tui.keys.switch_to_study) {
               tui.switch_mode(mode_study);
           } else if (event.key === tui.keys.switch_to_password) {
+              event.preventDefault();
               tui.switch_mode(mode_password);
           } else if (event.key === tui.keys.flatten
                      && game.tasks.includes('FLATTEN_SURROUNDINGS')) {