spacewrench
Junior Member
Parallels (both v6 and v7) seem to handle the control and command keys specially in a Linux guest environment. In the Inkscape graphical editor, Ctrl+Mouse Wheel is used to zoom in & out. However, this doesn't work under Parallels.
I investigated using xev to see what X events are generated. When you press most keys, including Shift, there's an immediate KeyPress event when you press, and an immediate KeyRelease when you let go. However, for the Control, Alt/Option and Command keys, there's NO event when you press the key. However, when you release it, you get a KeyPress followed immediately by a KeyRelease. When you do, e.g., Ctrl+C, the Control KeyPress doesn't happen until you press C, at which time you get the two successive KeyPress events.
When you combine Ctrl with mouse wheel, (i.e., Press CTRL, then move mouse wheel) you get the KeyPress and ButtonPress events in the WRONG ORDER. Even though Ctrl is pressed first, the events you get are: ButtonPress(5), ButtonRelease(5), then KeyPress(Ctrl) and KeyRelease(Ctrl). So the application never sees that the scroll events happened with the Ctrl modifier.
When you do multiple scroll clicks with the Ctrl key pressed, the second and subsequent ones have the proper Ctrl bit set (so ctrl-scroll zooming works in Gimp) but it appears Inkscape needs the Ctrl KeyPress event to come before the first scroll-wheel event.
I have "Use Ctrl+Shift to right-click" disabled (I have a 3-button, scroll-wheel mouse) but Parallels still seems to be treating Ctrl, Alt and Command key presses oddly.
Any help?
Thanks!
I investigated using xev to see what X events are generated. When you press most keys, including Shift, there's an immediate KeyPress event when you press, and an immediate KeyRelease when you let go. However, for the Control, Alt/Option and Command keys, there's NO event when you press the key. However, when you release it, you get a KeyPress followed immediately by a KeyRelease. When you do, e.g., Ctrl+C, the Control KeyPress doesn't happen until you press C, at which time you get the two successive KeyPress events.
When you combine Ctrl with mouse wheel, (i.e., Press CTRL, then move mouse wheel) you get the KeyPress and ButtonPress events in the WRONG ORDER. Even though Ctrl is pressed first, the events you get are: ButtonPress(5), ButtonRelease(5), then KeyPress(Ctrl) and KeyRelease(Ctrl). So the application never sees that the scroll events happened with the Ctrl modifier.
When you do multiple scroll clicks with the Ctrl key pressed, the second and subsequent ones have the proper Ctrl bit set (so ctrl-scroll zooming works in Gimp) but it appears Inkscape needs the Ctrl KeyPress event to come before the first scroll-wheel event.
I have "Use Ctrl+Shift to right-click" disabled (I have a 3-button, scroll-wheel mouse) but Parallels still seems to be treating Ctrl, Alt and Command key presses oddly.
Any help?
Thanks!