Comment 47 for bug 741869

Revision history for this message
pabouk (pabouk) wrote :

The behaviour is much better after patching but for example in VMware Workstation (or Player) some problems persist:

When the keyboard is grabbed (mouse is in the window of a VM with VMware Tools) and the keys (Super or Alt) are pressed nothing happens in Unity as expected. But when the keyboard is ungrabbed (mouse leaves the window) shortly after the keypress Unity behaves as if the key was pressed again.

Test case:
1. In VMware Workstation (or Player) start a VM with VMware Tools installed.
2. Move the mouse cursor inside the window of the VM.
3. Press Super or Alt.
4. In less than 2 seconds move the mouse cursor outside of the window.
5. Nothing should happen in Unity but Unity actually behaves as if the key (Super or Alt) was pressed again.

It seems that there is a timeout for this behaviour. When the keyboard is ungrabbed after more than approximately 3 seconds then nothing happens in Unity as expected.

Alternative test case (does not require VMware Tools but is not so annoying.):
1. In VMware Workstation (or Player) start a VM.
2. Grab the keyboard in the VM (Ctrl+G or mouse click).
3. Press Alt. (Super does not demonstrate this problem completely in this variant.)
4. In less than 2 seconds ungrab the kyboard by pressing Ctrl+Alt.
5. Nothing should happen in Unity but Unity actually behaves as if the key (Alt) was pressed again. (With Super Dash only flashes shortly.)

...but since this problem does not show up when the VM is in full screen mode then it seems that the bugfix in Unity behaves correctly as described in this case.