From 663f26943b1e2d4df596a6bc266e8291e12ec0f1 Mon Sep 17 00:00:00 2001
From: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Date: Wed, 28 Aug 2024 11:50:12 +0200
Subject: [PATCH] [Workspaces] OOBE: adding shortcut (#34461)
* [Workspaces] OOBE: adding shortcut
* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
---------
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
---
.../Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml | 1 +
.../SettingsXAML/OOBE/Views/OobeWorkspaces.xaml.cs | 2 ++
src/settings-ui/Settings.UI/Strings/en-us/Resources.resw | 4 ++++
3 files changed, 7 insertions(+)
diff --git a/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml b/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml
index 6fadeffdcf..d627036273 100644
--- a/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml
+++ b/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml
@@ -14,6 +14,7 @@
+
diff --git a/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml.cs b/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml.cs
index a7e88c7384..772807f735 100644
--- a/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml.cs
+++ b/src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeWorkspaces.xaml.cs
@@ -2,6 +2,7 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+using Microsoft.PowerToys.Settings.UI.Library;
using Microsoft.PowerToys.Settings.UI.OOBE.Enums;
using Microsoft.PowerToys.Settings.UI.OOBE.ViewModel;
using Microsoft.PowerToys.Settings.UI.Views;
@@ -37,6 +38,7 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
protected override void OnNavigatedTo(NavigationEventArgs e)
{
ViewModel.LogOpeningModuleEvent();
+ HotkeyControl.Keys = SettingsRepository.GetInstance(new SettingsUtils()).SettingsConfig.Properties.Hotkey.Value.GetKeysList();
}
protected override void OnNavigatedFrom(NavigationEventArgs e)
diff --git a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
index d9692d2ecb..6ce71147e7 100644
--- a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
+++ b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
@@ -2183,6 +2183,10 @@ From there, simply click on one of the supported files in the File Explorer and
In File Explorer, right-click one or more selected files and select **Rename with PowerRename** from the context menu.
+
+ to open the Workspaces Editor.
+ {Locked="Workspaces"}
+
In the Workspaces Editor window create Workspaces - a set of applications arranged in a custom layout. You can launch Workspaces from the Workspaces Editor or by shortcuts created in the Workspaces Editor.