X-Git-Url: https://plomlompom.com/repos/condition_descriptions?a=blobdiff_plain;f=rogue_chat.html;h=a09892dbc86576e8db2d437a29e22212e09508c2;hb=52a97e1d01fd8541ec8993f1d680aeb56243df9d;hp=eb23d1cf3bfeb411f60079bcaf78eac35fa0aa8e;hpb=249d0afc8663af2a1dbdd9d2f893582fe235cf6c;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index eb23d1c..a09892d 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -813,7 +813,7 @@ let tui = { || !game.player.carrying.commandable)) { return fail('not carrying anything commandable'); } else if (mode_name == 'name_thing' && !game.player.carrying) { - return fail('not carrying anything to re-name'); + return fail('not carrying anything to re-name', 'edit'); } else if (mode_name == 'admin_thing_protect' && !game.player.carrying) { return fail('not carrying anything to protect') } else if (mode_name == 'take_thing' && game.player.carrying) { @@ -1768,7 +1768,10 @@ window.setInterval(function() { }, 1000); window.setInterval(function() { if (document.activeElement.tagName.toLowerCase() != 'input') { + const scroll_x = window.scrollX; + const scroll_y = window.scrollY; tui.inputEl.focus(); + window.scrollTo(scroll_x, scroll_y); }; }, 100); document.getElementById("help").onclick = function() {