From c02f83ad273383665a670bf3162dc01d9227e7cb Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Mon, 21 May 2018 01:50:51 -0700 Subject: [PATCH 1/2] Unredden the input bar when the viewport is clicked --- code/modules/client/client_procs.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 1128fb273dc..088f3947fc1 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -680,6 +680,8 @@ 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 + + winset(src, null, "input.background-color=[COLOR_INPUT_DISABLED]") ..() /client/proc/add_verbs_from_config() From 85ac15af9f26504a55d36c74937513586bb35c2f Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Fri, 25 May 2018 15:09:12 -0700 Subject: [PATCH 2/2] Only adjust input bar color on hotkey mode --- code/modules/client/client_procs.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 088f3947fc1..d02325c7a3a 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -681,7 +681,12 @@ GLOBAL_LIST_EMPTY(external_rsc_urls) to_chat(src, "Your previous click was ignored because you've done too many in a second") return - winset(src, null, "input.background-color=[COLOR_INPUT_DISABLED]") + 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()