[feat](trx-frontend-http): add F hotkey to focus frequency input

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-28 14:34:52 +01:00
parent 3003cf0df6
commit 171a1f4bbc
2 changed files with 9 additions and 0 deletions
@@ -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;
@@ -1258,6 +1258,7 @@
<div class="shortcut-overlay-title">Keyboard Shortcuts</div>
<table class="shortcut-table">
<tbody>
<tr><td class="shortcut-key"><kbd>F</kbd></td><td>Focus frequency input</td></tr>
<tr><td class="shortcut-key"><kbd>R</kbd></td><td>Round frequency up to next step</td></tr>
<tr><td class="shortcut-key"><kbd>T</kbd></td><td>Retune current frequency</td></tr>
<tr><td class="shortcut-key"><kbd>B</kbd></td><td>Jump to previous freq/bw/mode</td></tr>