diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-03-19 02:13:01 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-03-19 02:13:01 +0200 |
| commit | fb8342a8ec237f5646a4807b63c12f6afe3ba290 (patch) | |
| tree | efce179c712ea20d2b8f3d90f39c8d1765d33ea2 /Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs | |
| parent | 7320824d1fc827b25327a2aaa3d571480b40975c (diff) | |
| download | Tango-fb8342a8ec237f5646a4807b63c12f6afe3ba290.tar.gz Tango-fb8342a8ec237f5646a4807b63c12f6afe3ba290.zip | |
Improved monitoring.
Implemented RDP keyboard/double click.
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs b/Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs index 832018dac..0c077f1d3 100644 --- a/Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs +++ b/Software/Visual_Studio/Tango.RemoteDesktop/Input/KeyboardController.cs @@ -50,30 +50,7 @@ namespace Tango.RemoteDesktop.Input public static void KeyUp(Key key, bool ctrlDown, bool shitDown, bool altDown) { VirtualKeyCode virtualKey = (VirtualKeyCode)KeyInterop.VirtualKeyFromKey(key); - - if (ctrlDown || shitDown || altDown) - { - List<VirtualKeyCode> modifierKeys = new List<VirtualKeyCode>(); - - if (ctrlDown) - { - modifierKeys.Add(VirtualKeyCode.LCONTROL); - } - if (shitDown) - { - modifierKeys.Add(VirtualKeyCode.LSHIFT); - } - if (altDown) - { - modifierKeys.Add(VirtualKeyCode.MENU); - } - - simulator.Keyboard.ModifiedKeyStroke(modifierKeys, virtualKey); - } - else - { - simulator.Keyboard.KeyUp(virtualKey); - } + simulator.Keyboard.KeyUp(virtualKey); } } } |
