X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.css?a=blobdiff_plain;f=rogue_chat.html;h=42b0362a4504aaed05882693cdbd05ead1c51171;hb=497f9b478cdaf0ad1825d95d612caab33ba7c403;hp=a28951a86711b79df84b8e8102d59c78c5ed96c0;hpb=77d92cc43df05bebecde95f39074024f359ad1be;p=plomrogue2 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")) {