[Bug 93249] key event going to display even with keyboard ungrabbed

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 7 07:14:05 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=93249

--- Comment #6 from Marc-Andre Lureau <marcandre.lureau at gmail.com> ---
(In reply to Zeeshan Ali from comment #5)
> > This is similar to any other gtk
> > widget.
> 
> Except that in case of other gtk widget, you can use kbd nav to switch to
> other widgets, e.g with 'Tab' key.

Not all widgets though. If I take textview or vte widget for example (which
should be similar to spice widget), it seems you can't change the focus with
TAB, and for good reasons. And they don't always have a key combination to
prevent this. In case of textview it's ctrl+tab.

> > It would be very unconvenient to explicitely take the grab in order
> > to give input to this widget.
> 
> Seems you are talking about the opposite. I'm talking about the state of
> user explicitly ungrabbing kbd using Ctrl_L+Alt_L keys and then expecting
> all key event to go to client/host while kbd is ungrabbed. At the very least
> they should have a way to focus another widget using 'Tab' key.

Probably not. Ungrabbing is for special keys, and tab is not special.

> If you insist on Boxes implementing this, I don't mind at all doing it there
> but then spice needs to provide me the way to distinguish between user
> explicitly ungrabbing keyboard and it happening as a result/side-effect of
> some other action/event.

I don't understand precisely the use case here.

Is it about being able to change the widget focus from keyboard?

This is problematic, because it will prevent sending this particular input to
the guest.

You can do this in boxes in various ways. It's not necessary for spice-gtk to
provide this, and imho it's better left outside, since it will need to be
configured for various needs (all key bindings are done in virt-viewer for ex,
except ungrab, which is mostly for historical reasons)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-bugs/attachments/20151207/1afb2c89/attachment-0001.html>


More information about the spice-bugs mailing list