KeyController Press and Release don't work correctly
Brought to you by:
charliepoole,
lukemaxon
The following simple scenario doesn't work:
keyboard.Press (Key.SHIFT);
keyboard.Click (Key.A);
keyboard.Release (Key.SHIFT);
Assert.AreEqual ("A", textBox.Text);
Where keyboard is a KeyboardController bounded to a ControlTester that is bounded to textBox.
See also the unit test in the submitted patch.
WORK AROUND:
Use the Click only, and use + (shift), ^ (control) and % (alt) keys.
keyboard.Click ("+A");
Path containing more keys (Key.cs) and tests for the KeyboardController