goldendict-ng
goldendict-ng copied to clipboard
Add --hide flag to hide any currently visible scan popups.
Is your feature request related to a problem? Please describe.
On KDE 6 on Wayland, I can currently map goldendict $(wl-paste -n -p)
to a global keyboard shortcut and that makes the scanner work again, but when I press esc
to close the popup, that escape key is also sent to whatever application is below the scan popup. Basically, it feels impossible to close the scan popup without causing other sideeffects on another application.
Additionally, if I type something after seemingly focusing the search box in the scan popup, the text actually gets typed in the application below the scan popup.
Describe the solution you'd like
Add a goldendict --hide
or similar that can be mapped to another global keyboard shortcut, that'd just hide any currently open scan popup.
Describe alternatives you've considered
I tried goldendict --reset-window-state
but that just opens the main window.