From c3268bc66c141dcaa647c674bad288586893e851 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 17 May 2026 01:03:55 -0700 Subject: Add ⌘K / Ctrl+K shortcut to focus sidebar ticker search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injects a zero-height components.html block after the market bar that listens for Cmd/Ctrl+K and focuses the sidebar search input by matching its placeholder text. Co-Authored-By: Claude Sonnet 4.6 --- app.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'app.py') diff --git a/app.py b/app.py index 5e45618..282b4e4 100644 --- a/app.py +++ b/app.py @@ -771,6 +771,25 @@ with st.container(): st.divider() +# ── ⌘K / Ctrl+K shortcut — focuses sidebar ticker search ───────────────────── +components.html( + "", + height=0, + scrolling=False, +) + # ── Main Content ────────────────────────────────────────────────────────────── if st.session_state["active_tab"] == "macro": -- cgit v1.3-2-g0d8e