From c4705531f04fb13d9701e798c9fe7c85fbfe7be3 Mon Sep 17 00:00:00 2001 From: Hayden Date: Mon, 18 May 2026 13:18:02 -0600 Subject: [PATCH] Enable find and refresh on browser windows (#22462) Regression from BYOND versions <=515 because find/refresh was always enabled on browser windows even when it wasn't supposed to be. Enable find (Ctrl+F) and refresh (F5) on browser windows. --- code/modules/admin/verbs/debug.dm | 1 - code/modules/client/client_procs.dm | 2 ++ .../banditoz-enable-find-and-refresh-on-browser-windows.yml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/banditoz-enable-find-and-refresh-on-browser-windows.yml diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 84493bc85f3..593262fe20c 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -514,7 +514,6 @@ to_chat(src, SPAN_INFO("You can now right click to use inspect on browsers.")) winset(src, null, list("browser-options" = "+devtools")) - winset(src, null, list("browser-options" = "+find")) /// A debug verb to check the sources of currently running timers /client/proc/check_timer_sources() diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 2eabc2f53d1..67802991954 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -391,6 +391,8 @@ GLOBAL_LIST_INIT(localhost_addresses, list( winset(src, "map", "style=\"[MAP_STYLESHEET]\"") + winset(src, null, list("browser-options" = "+find,refresh")) + if(IsGuestKey(key) && GLOB.config.external_auth) src.authed = FALSE var/mob/abstract/unauthed/m = new() diff --git a/html/changelogs/banditoz-enable-find-and-refresh-on-browser-windows.yml b/html/changelogs/banditoz-enable-find-and-refresh-on-browser-windows.yml new file mode 100644 index 00000000000..28be314d7c6 --- /dev/null +++ b/html/changelogs/banditoz-enable-find-and-refresh-on-browser-windows.yml @@ -0,0 +1,4 @@ +author: Banditoz +delete-after: True +changes: + - rscadd: "Enable find (Ctrl+F) and refresh (F5) on browser windows."