fix: no right-click Cut/Copy/Paste in release builds

Wails disables the WebView context menu in production, so an operator could not
paste a cluster address, an API key or a callsign anywhere in the app. Ctrl+V
did work — nothing intercepts it — but the menu is where people look, and a key
copied off a web page is exactly what you paste rather than retype.

EnableDefaultContextMenu turns it back on.
This commit is contained in:
2026-07-28 15:28:51 +02:00
parent b18db7acfc
commit 30d88276f3
2 changed files with 10 additions and 2 deletions
+4 -2
View File
@@ -4,11 +4,13 @@
"date": "2026-07-28", "date": "2026-07-28",
"en": [ "en": [
"Microwave bands are recognised: 13cm, 9cm, 6cm, 3cm (10 GHz), 1.25cm and above, plus 33cm and the 2190m/630m/560m low bands. A 10 GHz QSO used to come back with NO band at all — so it was logged without one, counted in no award slot, and exported without a BAND field. Band pickers, statistics and award band columns follow.", "Microwave bands are recognised: 13cm, 9cm, 6cm, 3cm (10 GHz), 1.25cm and above, plus 33cm and the 2190m/630m/560m low bands. A 10 GHz QSO used to come back with NO band at all — so it was logged without one, counted in no award slot, and exported without a BAND field. Band pickers, statistics and award band columns follow.",
"Port fields can be cleared. Deleting the contents put the default straight back, so entering a different port meant overwriting it digit by digit. Fixed on the cluster editor, where it was reported, and in the eight other places with the same fault (CAT, amplifier, antenna, rotator, database, SMTP)." "Port fields can be cleared. Deleting the contents put the default straight back, so entering a different port meant overwriting it digit by digit. Fixed on the cluster editor, where it was reported, and in the eight other places with the same fault (CAT, amplifier, antenna, rotator, database, SMTP).",
"Right-click now offers Cut / Copy / Paste again. The WebView's context menu is disabled in release builds, so pasting a cluster address or an API key was keyboard-only, with nothing to say so."
], ],
"fr": [ "fr": [
"Les bandes hyperfréquences sont reconnues : 13cm, 9cm, 6cm, 3cm (10 GHz), 1.25cm et au-delà, ainsi que 33cm et les bandes basses 2190m/630m/560m. Un QSO à 10 GHz revenait sans AUCUNE bande — donc enregistré sans bande, compté dans aucun diplôme, et exporté sans champ BAND. Les listes de bandes, les statistiques et les colonnes de diplômes suivent.", "Les bandes hyperfréquences sont reconnues : 13cm, 9cm, 6cm, 3cm (10 GHz), 1.25cm et au-delà, ainsi que 33cm et les bandes basses 2190m/630m/560m. Un QSO à 10 GHz revenait sans AUCUNE bande — donc enregistré sans bande, compté dans aucun diplôme, et exporté sans champ BAND. Les listes de bandes, les statistiques et les colonnes de diplômes suivent.",
"Les champs de port peuvent être vidés. Effacer le contenu réinscrivait aussitôt la valeur par défaut, si bien qu'entrer un autre port obligeait à l'écraser chiffre par chiffre. Corrigé dans l'éditeur de cluster, où c'était signalé, et dans les huit autres endroits présentant le même défaut (CAT, amplificateur, antenne, rotator, base de données, SMTP)." "Les champs de port peuvent être vidés. Effacer le contenu réinscrivait aussitôt la valeur par défaut, si bien qu'entrer un autre port obligeait à l'écraser chiffre par chiffre. Corrigé dans l'éditeur de cluster, où c'était signalé, et dans les huit autres endroits présentant le même défaut (CAT, amplificateur, antenne, rotator, base de données, SMTP).",
"Le clic droit propose de nouveau Couper / Copier / Coller. Le menu contextuel du WebView est désactivé dans les versions publiées, si bien que coller une adresse de cluster ou une clé API n'était possible qu'au clavier, sans que rien ne l'indique."
] ]
}, },
{ {
+6
View File
@@ -118,6 +118,12 @@ func main() {
// buttons. Windows still draws the resize borders and honours Aero Snap, // buttons. Windows still draws the resize borders and honours Aero Snap,
// which is why the frame is dropped rather than the whole chrome. // which is why the frame is dropped rather than the whole chrome.
Frameless: true, Frameless: true,
// Right-click → Cut / Copy / Paste. Wails disables the WebView's context
// menu in production builds, so an operator could not paste a cluster
// address, an API key or a callsign anywhere in the app — Ctrl+V worked,
// but nothing said so, and pasting is exactly what you do with a key
// copied off a web page.
EnableDefaultContextMenu: true,
// Start hidden and reveal only once the saved position has been applied and // Start hidden and reveal only once the saved position has been applied and
// the DOM has painted (OnDomReady → domReady) — so the window appears // the DOM has painted (OnDomReady → domReady) — so the window appears
// already at its final size and position, with no post-launch jump. // already at its final size and position, with no post-launch jump.