This is a minimal Wails v2 repro that shows text input shortcuts breaking when a custom menu is set via Menu: appMenu in main.go.
- Go 1.20+ (or your local Go toolchain)
- Wails v2.11.0
cd poc/wails-menu-input-bugwails dev- Click the input.
- Try standard clipboard shortcuts:
- macOS:
Cmd+V,Cmd+A,Cmd+C - Windows/Linux:
Ctrl+V,Ctrl+A,Ctrl+C
- macOS:
Clipboard shortcuts do not work in the text input while the custom menu is enabled:
Menu: appMenu in main.go.
Clipboard shortcuts should work in the input, even with a custom menu enabled.
In main.go, comment out the menu line:
// Menu: appMenu,
Restart the app. The input shortcuts work again.
- The menu structure is a simplified version of the menu used in the main app.
- The input and behavior are intentionally minimal to isolate the issue.