Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --hide flag to hide any currently visible scan popups. #1778

Open
aero31aero opened this issue Sep 21, 2024 · 2 comments
Open

Add --hide flag to hide any currently visible scan popups. #1778

aero31aero opened this issue Sep 21, 2024 · 2 comments
Labels
Wayland Linux desktop's future.

Comments

@aero31aero
Copy link

aero31aero commented Sep 21, 2024

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.

@KonstantinDjairo
Copy link
Contributor

what you're describing is a very simple problem: the scanner is not getting focus.
and this might be a wayland issue or using a hacky approach like the one that you've mentioned (wl-paste) isn't reliable.

please consider just using the casual functions for that, and use the program like it was intended to.
whenever you hove the mouse over a word/phrase, it should send to the scanpopup, no need to call it by a external keybinding or script

@aero31aero
Copy link
Author

aero31aero commented Oct 1, 2024 via email

@shenlebantongying shenlebantongying added the Wayland Linux desktop's future. label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wayland Linux desktop's future.
Projects
None yet
Development

No branches or pull requests

3 participants