Merge pull request #6909 from Citadel-Station-13/upstream-merge-37963

[MIRROR] Unredden the input bar when the viewport is clicked
This commit is contained in:
LetterJay
2018-05-26 18:41:09 -05:00
committed by GitHub
+7
View File
@@ -704,6 +704,13 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
if (clicklimiter[SECOND_COUNT] > scl)
to_chat(src, "<span class='danger'>Your previous click was ignored because you've done too many in a second</span>")
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()