From d4b8d3e540c85113930ade07e741dfb771c0ded3 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 25 May 2018 22:24:31 -0400 Subject: [PATCH] Merge pull request #37963 from AutomaticFrenzy/patch/finally Unredden the input bar when the viewport is clicked --- code/modules/client/client_procs.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index dfecc6f633..2d12b7b0a4 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -704,6 +704,13 @@ GLOBAL_LIST_EMPTY(external_rsc_urls) if (clicklimiter[SECOND_COUNT] > scl) to_chat(src, "Your previous click was ignored because you've done too many in a second") return + + if (prefs.hotkeys) + // If hotkey mode is enabled, then clicking the map will automatically + // unfocus the text bar. This removes the red color from the text bar + // so that the visual focus indicator matches reality. + winset(src, null, "input.background-color=[COLOR_INPUT_DISABLED]") + ..() /client/proc/add_verbs_from_config()