From: Christian Heller Date: Tue, 8 Dec 2020 23:49:22 +0000 (+0100) Subject: Don't treat move keybinding fields as move buttons. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/do_todos?a=commitdiff_plain;h=b9c67f75ffe716032db11c7b598c786f0fb4d3ad;p=plomrogue2 Don't treat move keybinding fields as move buttons. --- diff --git a/rogue_chat.html b/rogue_chat.html index a28951a..42b0362 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1686,6 +1686,9 @@ document.getElementById("teleport").onclick = function() { game.teleport(); }; for (const move_button of document.querySelectorAll('[id*="_move_"]')) { + if (move_button.id.startsWith('key_')) { // not a move button + continue; + }; let direction = move_button.id.split('_')[2].toUpperCase(); move_button.onclick = function() { if (tui.mode.available_actions.includes("move")) {