From b6872dde34aa804fa50da65eec4869492d3a4512 Mon Sep 17 00:00:00 2001 From: LeapwardKoex Date: Wed, 12 Jun 2024 22:50:48 +1200 Subject: [PATCH] Try and fix phantom keyboard presses when using keyboard emulation Change ring button emulation to be defaulted to true --- App.config | 2 +- Properties/Settings.Designer.cs | 2 +- Properties/Settings.settings | 2 +- TouchPanel.xaml.cs | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/App.config b/App.config index 0ac343f..20ab474 100644 --- a/App.config +++ b/App.config @@ -26,7 +26,7 @@ - False + True diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index c5d6f88..98e2149 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -97,7 +97,7 @@ namespace WpfMaiTouchEmulator.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] + [global::System.Configuration.DefaultSettingValueAttribute("True")] public bool IsRingButtonEmulationEnabled { get { return ((bool)(this["IsRingButtonEmulationEnabled"])); diff --git a/Properties/Settings.settings b/Properties/Settings.settings index 0a7a5af..064ef61 100644 --- a/Properties/Settings.settings +++ b/Properties/Settings.settings @@ -21,7 +21,7 @@ - False + True \ No newline at end of file diff --git a/TouchPanel.xaml.cs b/TouchPanel.xaml.cs index 82ca19a..477ed51 100644 --- a/TouchPanel.xaml.cs +++ b/TouchPanel.xaml.cs @@ -60,6 +60,7 @@ public partial class TouchPanel : Window private void Window_Loaded(object sender, RoutedEventArgs e) { buttons = VisualTreeHelperExtensions.FindVisualChildren(this); + DeselectAllItems(); } public void PositionTouchPanel()