From 6000c30d9cf35e461f218537a9ce5f71349722bb Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Mon, 30 Mar 2026 00:13:46 +0200 Subject: [PATCH] [fix](trx-client): R hotkey no-ops when frequency already on step grid Previously R would retune even when the frequency was already aligned to the jog step boundary. Now it shows "Already on step" and sends no command. Also remove the stale "retune" label from the shortcut help. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 5 ++--- .../trx-frontend/trx-frontend-http/assets/web/index.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 3cb0523..48a578b 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 @@ -10703,7 +10703,7 @@ window.addEventListener("keydown", (event) => { return; } - // R — round frequency to nearest jog step boundary, or retune if already round + // R — round frequency to nearest jog step boundary if (key === "r") { event.preventDefault(); if (lastLocked) { showHint("Locked", 1500); return; } @@ -10715,8 +10715,7 @@ window.addEventListener("keydown", (event) => { setRigFrequency(rounded); showHint(`Rounded → ${formatFreq(rounded)}`, 1200); } else { - setRigFrequency(lastFreqHz); - showHint("Retuning…", 1200); + showHint("Already on step", 1200); } } 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 cb922b1..9d0473d 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 @@ -1386,7 +1386,7 @@ - +
FPick frequency (focus input)
RRound to nearest step / retune
RRound to nearest step
BJump to previous freq/bw/mode
[ / ]Narrow / widen bandwidth (±10 kHz)
/ Tune by current step