From 01e037b538cb01d78e2022785587789f346bee4b Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 25 Nov 2020 04:17:51 +0100
Subject: [PATCH] In web client, also hide help screen on any click.

---
 rogue_chat.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rogue_chat.html b/rogue_chat.html
index 71a5065..51ac81d 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -59,9 +59,9 @@ terminal columns: <input id="n_cols" type="number" step=4 min=80 value=80 />
     <td>
       <button id="switch_to_write">change tile</button>
       <button id="flatten">flatten surroundings</button>
-      <button id="switch_to_password">change tile editing password</button>
       <button id="switch_to_annotate">annotate tile</button>
       <button id="switch_to_portal">edit portal link</button>
+      <button id="switch_to_password">change tile editing password</button>
     </td>
   </tr>
   <tr>
@@ -1208,6 +1208,9 @@ tui.inputEl.addEventListener('input', (event) => {
     }
     tui.full_refresh();
 }, false);
+document.onclick = function() {
+    tui.show_help = false;
+};
 tui.inputEl.addEventListener('keydown', (event) => {
     tui.show_help = false;
     if (event.key == 'Enter') {
-- 
2.30.2