From: Christian Heller Date: Wed, 25 Nov 2020 03:17:51 +0000 (+0100) Subject: In web client, also hide help screen on any click. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/do_day?a=commitdiff_plain;h=01e037b538cb01d78e2022785587789f346bee4b;p=plomrogue2 In web client, also hide help screen on any click. --- 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: - + @@ -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') {