From cdb1d2aa196d26c7d54b2c4ade9a1272cab02aae Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 10 Nov 2020 03:48:19 +0100
Subject: [PATCH] Prevent switch_to_password key from entering password input.

---
 rogue_chat_nocanvas_monochrome.html | 1 +
 1 file changed, 1 insertion(+)

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')) {
-- 
2.30.2