home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
85992bc
)
Only enforce keyboard input when strictly needed in web client.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 25 Nov 2020 05:00:19 +0000
(06:00 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 25 Nov 2020 05:00:19 +0000
(06:00 +0100)
rogue_chat.html
patch
|
blob
|
history
diff --git
a/rogue_chat.html
b/rogue_chat.html
index 02fb9a672aac937e4c006f20d5af7c30e5a2687e..665bc3d2b5cdce8a597db8be54ddd4360280b8de 100644
(file)
--- a/
rogue_chat.html
+++ b/
rogue_chat.html
@@
-613,13
+613,15
@@
let tui = {
if (this.mode.name == 'control_tile_draw') {
tui.log_msg('@ finished tile protection drawing.')
}
if (this.mode.name == 'control_tile_draw') {
tui.log_msg('@ finished tile protection drawing.')
}
- this.inputEl.focus();
this.map_mode = 'terrain + things';
this.tile_draw = false;
if (mode_name == 'admin_enter' && this.is_admin) {
mode_name = 'admin';
};
this.mode = this['mode_' + mode_name];
this.map_mode = 'terrain + things';
this.tile_draw = false;
if (mode_name == 'admin_enter' && this.is_admin) {
mode_name = 'admin';
};
this.mode = this['mode_' + mode_name];
+ if (this.mode.has_input_prompt || this.mode.is_single_char_entry) {
+ this.inputEl.focus();
+ }
if (game.player_id in game.things && (this.mode.shows_info || this.mode.name == 'control_tile_draw')) {
explorer.position = game.things[game.player_id].position;
if (this.mode.shows_info) {
if (game.player_id in game.things && (this.mode.shows_info || this.mode.name == 'control_tile_draw')) {
explorer.position = game.things[game.player_id].position;
if (this.mode.shows_info) {