X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=new2%2Frogue_chat_nocanvas_monochrome.html;fp=new2%2Frogue_chat_nocanvas_monochrome.html;h=ab3ce34b1a65df612a176204f24f0dc09823f1fa;hp=b51fc019c3fe859219d38f32ce6b90f6bc3a1e7d;hb=225d5b3848fae3c074d7b1f3711b2aea9f67ed7a;hpb=0f06e733808a21d58baf655d2d3443374140cfb2 diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index b51fc01..ab3ce34 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -708,9 +708,9 @@ tui.inputEl.addEventListener('keydown', (event) => { let [tokens, token_starts] = parser.tokenize(tui.inputEl.value); if (tokens.length > 0 && tokens[0].length > 0) { if (tui.inputEl.value[0][0] == '/') { - if (tokens[0].slice(1) == 'play' || tokens[0].slice(1) == 'P') { + if (tokens[0].slice(1) == 'play' || tokens[0][1] == tui.keys.switch_to_play) { tui.switch_mode(mode_play); - } else if (tokens[0].slice(1) == 'study' || tokens[0].slice(1) == '?') { + } else if (tokens[0].slice(1) == 'study' || tokens[0][1] == tui.keys.switch_to_study) { tui.switch_mode(mode_study); } else if (tokens[0].slice(1) == 'help') { tui.log_help();