aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-25 18:03:20 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-25 18:03:20 +0300
commit50eb2f5147af4387f807872ae81dd50dfedbb86e (patch)
treec731631d80bfd0b8a8eeb7a4546f5648b9634a9f /Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs
parentc8890c60c3ee1d9f33606d272fdc45e6f7f5ef3f (diff)
downloadTango-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.cs4
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)
}