Only adjust input bar color on hotkey mode

This commit is contained in:
Tad Hardesty
2018-05-25 15:12:17 -07:00
parent c02f83ad27
commit 85ac15af9f
+6 -1
View File
@@ -681,7 +681,12 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
to_chat(src, "<span class='danger'>Your previous click was ignored because you've done too many in a second</span>")
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()