RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1007877 - Only trigger grab sequence upon key release, instead of press
Summary: Only trigger grab sequence upon key release, instead of press
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gtk-vnc
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-13 13:36 UTC by Daniel Berrangé
Modified: 2014-11-10 12:17 UTC (History)
3 users (show)

Fixed In Version: gtk-vnc-0.5.2-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:48:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 685257 0 None None None Never

Description Daniel Berrangé 2013-09-13 13:36:13 UTC
Description of problem:
Virt-manager uses the keyboard shortcut ctrl+alt to toggle inside/outside the
VM (aka release pointer). Now Gnome uses ctrl+alt+arrow_key to switch virtual
desktops. So these two shortcuts collide and virt-manager will grab the key
presses as soon as ctrl+alt is pressed and toogle inside/outside the VM, which
makes switching desktops impossible.

There should be at least 2 ways to get this working.

Solution 1 (more elegant but probably more complex):
Do not immediately take action on key-down press event, instead wait for
another key to be pressed besides ctrl+alt (i.e. ctrl+alt+left) and react on
that. Otherwise if only ctrl+alt is pressed and the keys are released trigger
on that event to do the actual toggle inside/outside VM. (Note: when outside
the VM ctrl+alt+<something> should be handled by the windowmanager)

Benefit of this approach: All ctrl+alt+<something> keyboard shortcuts should
work, no more need for "ctrl+alt+<something> send keys". This should also allow
to switch virtual desktops inside and outside of a VM.


Solution 2 (less intrusive and easier to accomplish):
Just check whether currently inside or outside of the VM and pass
ctrl+alt+<something> to the window manager if outside.

Benefit of this approach: Allow switching of virtual desktops outside of VM.
Should be easier to accomplish without having looked at the actual code.


I'd prefer getting Solution 1 to work without knowing how much effort that
would cost. Thanks for considering, I'll try to help out on this as good as I
can.

Version-Release number of selected component (if applicable):
0.5.2-1.el7

How reproducible:
Always

Steps to Reproduce:
1.Try to press 'Ctrl+Alt+Left-Arrow' in the VM window
2.
3.

Actual results:
Ctrl-Alt  trigger grab sequenece

Expected results:
Ctrl+alt+left-arrow goes to the VM

Additional info:

Comment 6 Ludek Smid 2014-06-13 09:48:33 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.