home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent mode switch command char spilling over from leaving study mode.
[plomrogue2-experiments]
/
new2
/
rogue_chat_nocanvas_monochrome.html
diff --git
a/new2/rogue_chat_nocanvas_monochrome.html
b/new2/rogue_chat_nocanvas_monochrome.html
index a42387f031f08f8906b861779520609a06923b07..0708135759b6d69b5bcec521d65627ac98972b7c 100644
(file)
--- a/
new2/rogue_chat_nocanvas_monochrome.html
+++ b/
new2/rogue_chat_nocanvas_monochrome.html
@@
-666,6
+666,7
@@
tui.inputEl.addEventListener('keydown', (event) => {
};
} else if (tui.mode == mode_study) {
if (event.key === 'c') {
};
} else if (tui.mode == mode_study) {
if (event.key === 'c') {
+ event.preventDefault();
tui.switch_mode(mode_chat);
} else if (event.key == 'p') {
tui.switch_mode(mode_play);
tui.switch_mode(mode_chat);
} else if (event.key == 'p') {
tui.switch_mode(mode_play);