Fix search input stealing focus on app launch - explicitly focus main widget

This commit is contained in:
Bendt
2025-12-19 16:39:01 -05:00
parent 19bc1c7832
commit 44cfe3f714
2 changed files with 6 additions and 0 deletions

View File

@@ -236,6 +236,9 @@ class CalendarApp(App):
self._update_status()
self._update_title()
# Focus the week grid (not the hidden search input)
self.query_one("#week-grid", WeekGrid).focus()
def _on_ipc_message(self, message: IPCMessage) -> None:
"""Handle IPC messages from sync daemon."""
if message.event == "refresh":