Skip to content

Commit

Permalink
Revert "remove set-focused from document load"
Browse files Browse the repository at this point in the history
This reverts commit d0172ae.
  • Loading branch information
sprocketc committed Jan 3, 2025
1 parent d0172ae commit 36e8712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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!)

Expand Down

0 comments on commit 36e8712

Please sign in to comment.