diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-25 18:03:20 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-25 18:03:20 +0300 |
| commit | 50eb2f5147af4387f807872ae81dd50dfedbb86e (patch) | |
| tree | c731631d80bfd0b8a8eeb7a4546f5648b9634a9f /Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs | |
| parent | c8890c60c3ee1d9f33606d272fdc45e6f7f5ef3f (diff) | |
| download | Tango-50eb2f5147af4387f807872ae81dd50dfedbb86e.tar.gz Tango-50eb2f5147af4387f807872ae81dd50dfedbb86e.zip | |
Working on PPC!!!
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs index affc0a2a0..a591f9748 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs @@ -9,6 +9,7 @@ using System.Windows.Controls; using System.Windows.Controls.Primitives; using Tango.Core.Commands; using Tango.Core.EventArguments; +using Tango.Touch.Keyboard; namespace Tango.Touch.Controls { @@ -35,6 +36,9 @@ namespace Tango.Touch.Controls private void OnMouseDown(object sender, MouseOrTouchEventArgs e) { + var element = e.OriginalSource as FrameworkElement; + if (element.Focusable) return; + Focus(); //TODO: Notice that this does not cause trouble. (Originally inserted for stealing focus from pop-ups) } |
