X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance2?a=blobdiff_plain;ds=sidebyside;f=new2%2Frogue_chat_nocanvas_monochrome.html;h=bea6f0a7bcb8a3c13107cc2991888cd238875d9c;hb=e6b85acc8931daa353ff32988e54e187a5a25f82;hp=db7e3037eaeab97c3a0085d70d0d4451411ea31b;hpb=47e43a5b4f32159302be343648e0027f2e01ca5a;p=plomrogue2-experiments diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index db7e303..bea6f0a 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -448,10 +448,10 @@ document.addEventListener('keydown', (event) => { websocket.send('TASK:MOVE DOWN'); }; } else if (tui.mode == 'edit') { - if (event.key.length === 1) { + if (event.key != "Shift" && event.key.length == 1) { websocket.send("TASK:WRITE " + quote(event.key)); + tui.switch_mode('play'); } - tui.switch_mode('play'); } else if (tui.mode == 'study') { if (event.key === 'c') { tui.switch_mode('chat');