Skip to content

Commit e52dd68

Browse files
[OOBE]Show actual CmdPal hotkey (#38067)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Update OOBE's CmdPal page to show the actual hotkey and style it similar to other OOBE pages. ![image](https://github.com/user-attachments/assets/c92beafc-52c2-4896-90bb-c4a8252f9768) <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Open OOBE and verify it looks like other OOBE pages.
1 parent 3e9a6a1 commit e52dd68

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeCmdPal.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<StackPanel Orientation="Vertical" Spacing="12">
1414
<TextBlock x:Uid="Oobe_HowToUse" Style="{ThemeResource OobeSubtitleStyle}" />
1515

16-
<tk7controls:MarkdownTextBlock x:Uid="Oobe_CmdPal_HowToUse" Background="Transparent" />
16+
<controls:ShortcutWithTextLabelControl x:Name="HotkeyControl" x:Uid="Oobe_CmdPal_HowToUse" />
1717

1818
<TextBlock x:Uid="Oobe_TipsAndTricks" Style="{ThemeResource OobeSubtitleStyle}" />
1919

src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeCmdPal.xaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ private void SettingsLaunchButton_Click(object sender, Microsoft.UI.Xaml.RoutedE
3535
protected override void OnNavigatedTo(NavigationEventArgs e)
3636
{
3737
ViewModel.LogOpeningModuleEvent();
38+
var hotkey = new CmdPalProperties().Hotkey;
39+
HotkeyControl.Keys = hotkey.GetKeysList();
3840
}
3941

4042
protected override void OnNavigatedFrom(NavigationEventArgs e)

src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

+1-1
Original file line numberDiff line numberDiff line change
@@ -4960,7 +4960,7 @@ To record a specific window, enter the hotkey with the Alt key in the opposite m
49604960
<comment>"Command Palette" is a product name</comment>
49614961
</data>
49624962
<data name="Oobe_CmdPal_HowToUse.Text" xml:space="preserve">
4963-
<value>Select Win+Alt+Space and start typing!</value>
4963+
<value>and start typing!</value>
49644964
</data>
49654965
<data name="Oobe_CmdPal_TipsAndTricks.Text" xml:space="preserve">
49664966
<value>For this utility to work, the Command Palette must be enabled and running in the background. The Command Palette has a ton of extensions to try out to make your launching experience even better. You can search for available extensions within the palette itself!</value>

0 commit comments

Comments
 (0)