From 171a1f4bbc2fc7a71652ba63535fd96a815508b6 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 28 Mar 2026 14:34:52 +0100 Subject: [PATCH] [feat](trx-frontend-http): add F hotkey to focus frequency input Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 8 ++++++++ .../trx-frontend/trx-frontend-http/assets/web/index.html | 1 + 2 files changed, 9 insertions(+) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 0375105..4c84564 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -10534,6 +10534,14 @@ window.addEventListener("keydown", (event) => { return; } + // F — focus frequency input + if (key === "f" && !event.ctrlKey && !event.metaKey && !event.altKey && !shouldIgnoreGlobalShortcut(event.target)) { + event.preventDefault(); + const fi = document.getElementById("freq"); + if (fi) { fi.focus(); fi.select(); } + return; + } + if (event.ctrlKey || event.metaKey || event.altKey) return; if (shouldIgnoreGlobalShortcut(event.target)) return; diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index 10b5dbe..4f3c3b7 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -1258,6 +1258,7 @@
Keyboard Shortcuts
+
FFocus frequency input
RRound frequency up to next step
TRetune current frequency
BJump to previous freq/bw/mode