<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - key event going to display even with keyboard ungrabbed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93249#c30">Comment # 30</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - key event going to display even with keyboard ungrabbed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93249">bug 93249</a>
from <span class="vcard"><a class="email" href="mailto:zeenix@gmail.com" title="Zeeshan Ali <zeenix@gmail.com>"> <span class="fn">Zeeshan Ali</span></a>
</span></b>
<pre>(In reply to Marc-Andre Lureau from <a href="show_bug.cgi?id=93249#c29">comment #29</a>)
<span class="quote">> (In reply to Zeeshan Ali from <a href="show_bug.cgi?id=93249#c27">comment #27</a>)
> > * What I'm asking for is keyboard-grab=false to work as expected. i-e No key
> > events sucked by spice display when keyboard in ungrabbed even if widget is
> > in focus. No, this is not a new state I'm asking for. It's what
> > keyboard-unpgrab is meant for and it partially works (for system keys).
>
> keyboard-ungrab is generally for system grab (nothing else by default) </span >
Currently that might be but I presented arguments of why it should be for all
keys, above.
<span class="quote">> > Now, as for it working in virt-viewer as expected, I do not see the expected
> > behaviour in virt-manager either. I tried:
> >
> > 1. Ungrab kbd
> > 2. Hit Ctrl+q (nothing happened)
>
> It's ctrl+shift+q,</span >
That's for terminal.
<span class="quote">> and you need to press ctrl+alt.</span >
Yeah, I did, that is in fact Step#1 just above this step.
>From these two alone, I'm fairly sure you are talking about the opposite here:
Getting the system keys to guest. I'm expecting those shortcuts to work in
virt-manager UI rather than inside the guest. That's why every other step is to
ungrab the keyboard.
<span class="quote">> > 3. Ungrab kbd again
> > 4. Hit Ctrl+w (nothing happened)
> > 5. Ungrab kbd again
> > 6. Hit Ctrl+w (nothing happened)
>
> what's ctrl+w?</span >
See File menu entry in virt-manager.
<span class="quote">> > 9. Ungrab kbd again
> > 10. Tab to switch focus (focus remained on display and got a kbd bell from
> > terminal inside the guest demonstrating that key was received by guest)
>
> there is no accelerator or handling of Tab or focus management in
> virt-viewer.</span >
Of course not, Gtk+ will handle it if spice-gtk doesn't take the keys to the
guest.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>