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
+6
View File
@@ -118,6 +118,12 @@ func main() {
// buttons. Windows still draws the resize borders and honours Aero Snap,
// which is why the frame is dropped rather than the whole chrome.
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
// the DOM has painted (OnDomReady → domReady) — so the window appears
// already at its final size and position, with no post-launch jump.