X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=new2%2Frogue_chat_nocanvas_monochrome.html;h=ab3ce34b1a65df612a176204f24f0dc09823f1fa;hb=8f4f247a8c36610a5cd4eb03ddb26dcc701e38ab;hp=6436f216ee29f76e861d699d7a44884ba4827534;hpb=a1a274bf991656db86d17b836e5f87efbd7a38d5;p=plomrogue2-experiments diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index 6436f21..ab3ce34 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -10,7 +10,7 @@ terminal columns:

 
 
-keys:
+keys (see here for non-obvious available values):
move up (square grid): (hint: ArrowUp)
move left (square grid): (hint: ArrowLeft)
move down (square grid): (hint: ArrowDown)
@@ -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();