control key stops working in VirtualBox! With answer.
Here's a strange one for ya:
I had a VM running Ubuntu Server 8.10 under VirtualBox 4.0.12. Inside
that VM, CTL-C didn't work; it was as if I never pressed CTL at all. Nor
did any other tried, true and trusted CTL-combinations, like CTL-D,
CTL-Z etc. Nothing more frustrating than starting an ordinary ping and
having to kill the VM to regain control (yes, Virginia, there ARE VMs
that are not accessible via ssh).
Futzed around for half an hour before the light dawned: I had enabled
"show position of pointer when the Control key is
pressed" (System->Preferences->Mouse) for a presentation, and had not
turned it back off.
Now I didn't actually *know* that was the problem, but it seemed so
luminously clear when I thought of it that I would have been stunned had
it NOT been the problem, and indeed so it was. Turned off that setting,
and lo! CTL started working in my VMs again.
So I turned the setting back on to see what else broke (what a hero).
"Right-CTL to uncapture mouse pointer" didn't work, for a start; the
only way out of that one was to do a formal shutdown of the VM, 'cos I
couldn't get the focus back to outside the VM window. It did *sort of*
work, because when I then moved the mouse about and pressed either CTL,
the neato location display reported the mouse pointer location being
elsewhere on the screen, and that location was consistent with the mouse
movements I'd made, but it was not effective at those locations (i.e.,
clicking did nothing). The fact that the mouse cursor had vanished when
the VM captured the pointer and was not restored by pressing right-CTL
also severely reduced its usefulness.
I hadn't noticed it before, but with my new heightened awareness I now
realised that pressing either CTL key "dimmed" the highlight on selected
objects. That is, if I had (for example) selected a file in the file
manager, the colour surrounding that file's icon went a shade or two
darker from the moment a CTL key was pressed until the location display
had finished, then went back to normal.
CTL-ALT-Fx still worked to take me to a text console. CTL-leftclick also
still worked to select multiple objects in the file manager.
At that point I got bored :-)
So beware, VM users, of that setting!
PS: Bug #613833 - slightly different symptoms, clearly the same thing
though. Looks like someone is not passing the key event along properly.
Whether stuff works seems to be related to how close they are to the
original key-press (or possibly key-release) event - before or after the
location display hook, I guess. VirtualBox says "not our problem - we
can't do anything about events we don't see!" Fair enough, but they do
appear to partially uncapture the mouse pointer... hm.