From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 10 Nov 2020 02:48:19 +0000 (+0100)
Subject: Prevent switch_to_password key from entering password input.
X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/process?a=commitdiff_plain;h=cdb1d2aa196d26c7d54b2c4ade9a1272cab02aae;p=plomrogue2

Prevent switch_to_password key from entering password input.
---

diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html
index e6ba4a7..81c1e13 100644
--- a/rogue_chat_nocanvas_monochrome.html
+++ b/rogue_chat_nocanvas_monochrome.html
@@ -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')) {