From 36e871231b9dddb4da526bfd56220efe78de45ef Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Fri, 3 Jan 2025 19:12:15 +0200 Subject: [PATCH] Revert "remove set-focused from document load" This reverts commit d0172ae5f10c0a5c7442b06896ed25873d7fb17b. --- src/renderer/core.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/core.cljs b/src/renderer/core.cljs index ff8df253..c55a3dc7 100644 --- a/src/renderer/core.cljs +++ b/src/renderer/core.cljs @@ -94,6 +94,7 @@ (.addEventListener js/document "keydown" keyb/event-handler!) (.addEventListener js/document "keyup" keyb/event-handler!) (.addEventListener js/document "fullscreenchange" #(rf/dispatch [::window.e/set-fullscreen (boolean (.-fullscreenElement js/document))])) + (.addEventListener js/document "DOMContentLoaded" set-focused!) (.addEventListener js/window "focus" (rf/dispatch [::window.e/set-focused true])) (.addEventListener js/window "blur" set-focused!)