klipper: make show at mouse position shortcut toggle the popup
Reason for the change
Current behaviour has the shortcut unconditionally show the popup, so if it is already visible it will just flash and remain visible.
This can lead to situations where the user summons the popup with the shortcut, but then wants to close it — only to find that pressing the shortcut again doesn't dismiss it as expected.
This change aligns the behaviour with the more logical behaviour of a toggle, the same way things like Kickoff do; if the popup is already visible, hide it, otherwise show it.
Test plan
- Press the keyboard shortcut for "Show Clipboard Items at Mouse Position" - default is
Meta + V→ popup shows - Press shortcut again. Before: popup flashes a quick hide/show. After: popup toggles to hide.