diff options
| author | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
|---|---|---|
| committer | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
| commit | 00a491d93733d4625ad329b2ba8237f445364b3f (patch) | |
| tree | 4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs | |
| parent | 124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff) | |
| download | Tango-00a491d9.tar.gz Tango-00a491d9.zip | |
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs b/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs index 9a6b7227f..1856fd2ac 100644 --- a/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs +++ b/Software/Visual_Studio/Tango.Touch/Keyboard/TouchKeyboard.cs @@ -67,14 +67,6 @@ namespace Tango.Touch.Keyboard public static readonly DependencyProperty ModeProperty = DependencyProperty.Register("Mode", typeof(TouchKeyboardMode), typeof(TouchKeyboard), new PropertyMetadata(TouchKeyboardMode.AlphaNumeric)); - public KeyboardOutputMode OutputMode - { - get { return (KeyboardOutputMode)GetValue(OutputModeProperty); } - set { SetValue(OutputModeProperty, value); } - } - public static readonly DependencyProperty OutputModeProperty = - DependencyProperty.Register("OutputMode", typeof(KeyboardOutputMode), typeof(TouchKeyboard), new PropertyMetadata(KeyboardOutputMode.Wpf)); - public KeyboardActionKeyMode ActionKeyMode { get { return (KeyboardActionKeyMode)GetValue(ActionKeyModeProperty); } @@ -497,7 +489,7 @@ namespace Tango.Touch.Keyboard } - if (key.Length > 1 || (isSpecialChar && definition.KeysLinesDefinitions.SelectMany(x => x.KeyDefinitions).Select(x => x.StandardText).Contains(key)) || OutputMode == KeyboardOutputMode.Windows) + if (key.Length > 1 || (isSpecialChar && definition.KeysLinesDefinitions.SelectMany(x => x.KeyDefinitions).Select(x => x.StandardText).Contains(key))) { Core.Threading.ThreadFactory.StartNew(() => { @@ -505,13 +497,9 @@ namespace Tango.Touch.Keyboard { Forms.SendKeys.SendWait(key); } - else if (key != " ") - { - Forms.SendKeys.SendWait("{" + key + "}"); - } else { - Forms.SendKeys.SendWait(" "); + Forms.SendKeys.SendWait("{" + key + "}"); } Forms.SendKeys.Flush(); |
