From ef428e8ec3c10e4e2e8d43e5bc81967b8dcc1434 Mon Sep 17 00:00:00 2001 From: Marcus Markiewicz <43656407+supermem613@users.noreply.github.com> Date: Wed, 6 Jul 2022 13:35:09 -0700 Subject: [PATCH] Change the global search shortcut from WIN+Tilde to WIN+END. In order to do so, we need to stop persisting the hard-coded setting as well. (#87) --- Source/TeamMate/Model/Settings/SettingsSerializer.cs | 3 --- Source/TeamMate/Resources/TeamMateGestures.cs | 4 ++-- Source/TeamMate/Windows/WelcomeDialog.xaml | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/TeamMate/Model/Settings/SettingsSerializer.cs b/Source/TeamMate/Model/Settings/SettingsSerializer.cs index 0a314eb..8c5c0f8 100644 --- a/Source/TeamMate/Model/Settings/SettingsSerializer.cs +++ b/Source/TeamMate/Model/Settings/SettingsSerializer.cs @@ -50,7 +50,6 @@ namespace Microsoft.Tools.TeamMate.Model.Settings settingsElement.ReadElementValue(Schema.IsTracingEnabled, (value) => settings.IsTracingEnabled = value); settingsElement.ReadElementValue(Schema.QuickCreateGesture, (value) => settings.QuickCreateGesture = value); settingsElement.ReadElementValue(Schema.QuickCreateWithOptionsGesture, (value) => settings.QuickCreateWithOptionsGesture = value); - settingsElement.ReadElementValue(Schema.QuickSearchGesture, (value) => settings.QuickSearchGesture = value); settingsElement.ReadElementValue(Schema.ToggleMainWindowGesture, (value) => settings.ToggleMainWindowGesture = value); settingsElement.ReadElementValue(Schema.LaunchOnStartup, (value) => settings.LaunchOnStartup = value); settingsElement.ReadElementValue(Schema.ShowSplashScreen, (value) => settings.ShowSplashScreen = value); @@ -139,7 +138,6 @@ namespace Microsoft.Tools.TeamMate.Model.Settings e.SetElementValue(Schema.RefreshInterval, settings.RefreshInterval); e.SetElementValue(Schema.QuickCreateGesture, settings.QuickCreateGesture); e.SetElementValue(Schema.QuickCreateWithOptionsGesture, settings.QuickCreateWithOptionsGesture); - e.SetElementValue(Schema.QuickSearchGesture, settings.QuickSearchGesture); e.SetElementValue(Schema.ToggleMainWindowGesture, settings.ToggleMainWindowGesture); e.SetElementValue(Schema.SearchIdsAutomatically, settings.SearchIdsAutomatically); e.SetElementValue(Schema.ShowCountdown, settings.ShowCountdown); @@ -273,7 +271,6 @@ namespace Microsoft.Tools.TeamMate.Model.Settings public static readonly XName QuickCreateGesture = "QuickCreateGesture"; public static readonly XName QuickCreateWithOptionsGesture = "QuickCreateWithOptionsGesture"; - public static readonly XName QuickSearchGesture = "QuickSearchGesture"; public static readonly XName ToggleMainWindowGesture = "ToggleMainWindowGesture"; public static readonly XName RefreshInterval = "RefreshInterval"; diff --git a/Source/TeamMate/Resources/TeamMateGestures.cs b/Source/TeamMate/Resources/TeamMateGestures.cs index 0ca5f27..6a799aa 100644 --- a/Source/TeamMate/Resources/TeamMateGestures.cs +++ b/Source/TeamMate/Resources/TeamMateGestures.cs @@ -15,8 +15,8 @@ namespace Microsoft.Tools.TeamMate.Resources QuickCreate = new KeyGesture(Key.A, ModifierKeys.Shift | ModifierKeys.Windows); QuickCreateWithOptions = new KeyGesture(Key.A, ModifierKeys.Control | ModifierKeys.Windows); - QuickSearch = new KeyGesture(Key.OemTilde, ModifierKeys.Windows); - ToggleMainWindow = new KeyGesture(Key.Escape, ModifierKeys.Windows); + QuickSearch = new KeyGesture(Key.End, ModifierKeys.Windows); + ToggleMainWindow = new KeyGesture(Key.F, ModifierKeys.Windows); New = new KeyGesture(Key.N, ModifierKeys.Control); Minimize = new KeyGesture(Key.Escape); diff --git a/Source/TeamMate/Windows/WelcomeDialog.xaml b/Source/TeamMate/Windows/WelcomeDialog.xaml index 3cadb19..f56a7f4 100644 --- a/Source/TeamMate/Windows/WelcomeDialog.xaml +++ b/Source/TeamMate/Windows/WelcomeDialog.xaml @@ -19,7 +19,7 @@ You might want to learn these, you'll use them all the time. - WIN + ` (grave accent, above the Tab key), opens the quick search dialog. + WIN + END opens the quick search dialog. SHIFT + WIN + A creates a new default work item.