[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:
@@ -10534,6 +10534,14 @@ window.addEventListener("keydown", (event) => {
|
|||||||
return;
|
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 (event.ctrlKey || event.metaKey || event.altKey) return;
|
||||||
if (shouldIgnoreGlobalShortcut(event.target)) return;
|
if (shouldIgnoreGlobalShortcut(event.target)) return;
|
||||||
|
|
||||||
|
|||||||
@@ -1258,6 +1258,7 @@
|
|||||||
<div class="shortcut-overlay-title">Keyboard Shortcuts</div>
|
<div class="shortcut-overlay-title">Keyboard Shortcuts</div>
|
||||||
<table class="shortcut-table">
|
<table class="shortcut-table">
|
||||||
<tbody>
|
<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>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>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>
|
<tr><td class="shortcut-key"><kbd>B</kbd></td><td>Jump to previous freq/bw/mode</td></tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user