Is there a solution to VirtViewer 0.11 (SPICE client) occasionally capturing keyboard without focus ?

shodan

Well-Known Member
Sep 1, 2022
305
75
48
Hi,

I'm trying to work out the kinks related to using VirtViewer/SPICE

One of the annoyances is that sometimes it captures keyboard events when not focused ?
I think this might be from just passing the cursor over it
Even though not focused, sometimes it captures keyboard anyway.

And then the solution is to intentionally focus VirtViewer and then defocus it so it will let go.

But I'd like it would only capture keyboard events when I click on it and focus it.

I'm just curious, before I start digging into the code, if anyone know what the trick is, and if there is one ?

I would also like to stop VirtViewer from capturing global keybinds.

I have set alternate keybinds in all my virtual machine guest OS for the global keybinds, so I don't need global keybind capture, if I want client or guest global keybind, then I press the correct keybind