After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712554 - Right Ctrl+Alt fails to ungrab window
Right Ctrl+Alt fails to ungrab window
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: display
3.10.x
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-11-18 02:02 UTC by Michael Catanzaro
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Specify hint to make it clearer (1.00 KB, patch)
2014-04-08 13:06 UTC, Lasse Schuirmann
needs-work Details | Review
display-page: Specify exact CTRL key (1.01 KB, patch)
2014-04-08 14:33 UTC, Lasse Schuirmann
none Details | Review
display-page: Specify exact Ctrl key (1.01 KB, patch)
2014-04-08 16:07 UTC, Lasse Schuirmann
committed Details | Review

Description Michael Catanzaro 2013-11-18 02:02:46 UTC
When the mouse pointer is grabbed by the VM, Boxes displays a notice at the top of the screen: "press Ctrl+Alt to ungrab."  However, this only works if the left Ctrl+Alt keys are used.  The right Ctrl+Alt keys do not work as expected.
Comment 1 Zeeshan Ali 2013-11-18 11:33:43 UTC
Its spice feature or issue afaict. It could be a feature since you might want to keep the right ctrl+alt for client/host.

elmarco?
Comment 2 Marc-Andre Lureau 2013-11-18 12:46:56 UTC
(In reply to comment #1)
> Its spice feature or issue afaict. It could be a feature since you might want
> to keep the right ctrl+alt for client/host.

spice-gtk and gtk-vnc have same code for handling ungrab key accel. They both have the same "issue". There is a single combination, and left-ctrl right-ctrl are different there. It would make sense to update the message to say "left-ctrl + alt"

Another possibility would be to reimplement ungrab by using gtk accels entirely, which doesn't differentiate left and right ctrl, afaik. This is how virt-viewer hotkeys are implemented, they do not make use of the spice-gtk/gtk-vnc accel code in fact, but plain gtk accels.
Comment 3 Michael Catanzaro 2013-11-18 13:46:29 UTC
(In reply to comment #1)
> Its spice feature or issue afaict. It could be a feature since you might want
> to keep the right ctrl+alt for client/host.
> 
> elmarco?

I think the current behavior would be fine if the message is changed.
Comment 4 Lasse Schuirmann 2014-04-08 13:06:51 UTC
Created attachment 273803 [details] [review]
Specify hint to make it clearer

When grabbing the focus of a VM the hint says "press Ctrl+Alt keys to
ungrab". Since only the left Ctrl key works it was decided in a
discussion to change the hint and leave the functionality this way.
Comment 5 Zeeshan Ali 2014-04-08 13:22:49 UTC
Review of attachment 273803 [details] [review]:

'Specify hint to make it clearer'

What is 'it'? I think shorlog needs to be slightly more specific. How about "display-page: Specify exact CTRL key" ?

::: src/display-page.vala
@@ +86,3 @@
         string? hint = null;
         if (grabbed)
+            hint = _("(press Left-Ctrl+Alt keys to ungrab)");

Using '-' here doesn't seem good here together with '+'. How about just adding '(left) ' in front of 'Ctrl'. BTW, Shouldn't we be writing 'Ctrl+Alt' in all caps: CTRL+ALT?
Comment 6 Lasse Schuirmann 2014-04-08 14:33:55 UTC
Created attachment 273806 [details] [review]
display-page: Specify exact CTRL key

When grabbing the focus of a VM the hint says "press Ctrl+Alt keys to
ungrab". Since only the left Ctrl key works it was decided in a
discussion to change the hint and leave the functionality this way.
Comment 7 Lasse Schuirmann 2014-04-08 14:35:24 UTC
Review of attachment 273806 [details] [review]:

I used the [] brackets since the whole hint appears in brackets. I like (a hint with a [little] addition) much better than (a hint with a (little) addition).
Comment 8 Michael Catanzaro 2014-04-08 15:59:55 UTC
Thanks for working on this.

(In reply to comment #5) 
> Using '-' here doesn't seem good here together with '+'. How about just adding
> '(left) ' in front of 'Ctrl'. BTW, Shouldn't we be writing 'Ctrl+Alt' in all
> caps: CTRL+ALT?

No, these are consistently lowercase in GNOME applications: you can check any menu to see the accelerators next to a menu item, or look in Settings -> System -> Keyboard -> Shortcuts.
Comment 9 Lasse Schuirmann 2014-04-08 16:07:30 UTC
(In reply to comment #8)
> Thanks for working on this.
> 
> (In reply to comment #5) 
> > Using '-' here doesn't seem good here together with '+'. How about just adding
> > '(left) ' in front of 'Ctrl'. BTW, Shouldn't we be writing 'Ctrl+Alt' in all
> > caps: CTRL+ALT?
> 
> No, these are consistently lowercase in GNOME applications: you can check any
> menu to see the accelerators next to a menu item, or look in Settings -> System
> -> Keyboard -> Shortcuts.

I agree. And it looks better too IMHO.

Uploading the new patch in a few moments.
Comment 10 Lasse Schuirmann 2014-04-08 16:07:52 UTC
Created attachment 273816 [details] [review]
display-page: Specify exact Ctrl key

When grabbing the focus of a VM the hint says "press Ctrl+Alt keys to
ungrab". Since only the left Ctrl key works it was decided in a
discussion to change the hint and leave the functionality this way.
Comment 11 Zeeshan Ali 2014-04-08 16:30:43 UTC
Review of attachment 273816 [details] [review]:

ack
Comment 12 Zeeshan Ali 2014-04-08 16:35:05 UTC
Attachment 273816 [details] pushed as ab6cc04 - display-page: Specify exact Ctrl key