[PTRun]Add option to tab through results only (#22965)

* Added option to tab through results directly instead of context menu options

With reference to #22964

* Move setting to search results group
This commit is contained in:
Aditya Goturu
2023-01-10 19:34:50 +05:30
committed by GitHub
parent 9baaaefc5f
commit 25e9241d42
8 changed files with 76 additions and 8 deletions

View File

@@ -493,6 +493,12 @@
<data name="PowerLauncher_ClearInputOnLaunch.Content" xml:space="preserve">
<value>Clear the previous query on launch</value>
</data>
<data name="PowerLauncher_TabSelectsContextButtons.Header" xml:space="preserve">
<value>Tab through context buttons</value>
</data>
<data name="PowerLauncher_TabSelectsContextButtons.Description" xml:space="preserve">
<value>Pressing tab will first select through the available context buttons of the current selection before moving onto the next result</value>
</data>
<data name="PowerLauncher_SearchQueryResultsWithDelay.Header" xml:space="preserve">
<value>Input Smoothing</value>
<comment>This is about adding a delay to wait for more input before executing a search</comment>

View File

@@ -533,6 +533,23 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
public bool TabSelectsContextButtons
{
get
{
return settings.Properties.TabSelectsContextButtons;
}
set
{
if (settings.Properties.TabSelectsContextButtons != value)
{
settings.Properties.TabSelectsContextButtons = value;
UpdateSettings();
}
}
}
private ObservableCollection<PowerLauncherPluginViewModel> _plugins;
public ObservableCollection<PowerLauncherPluginViewModel> Plugins

View File

@@ -176,6 +176,15 @@
</labs:SettingsCard>
</labs:SettingsExpander.Items>
</labs:SettingsExpander>
<labs:SettingsCard
x:Uid="PowerLauncher_TabSelectsContextButtons"
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=&#xE7FD;}">
<ToggleSwitch
x:Uid="ToggleSwitch"
IsOn="{x:Bind ViewModel.TabSelectsContextButtons, Mode=TwoWay}" />
</labs:SettingsCard>
</controls:SettingsGroup>
<!--<ComboBox x:Uid="PowerLauncher_SearchResultPreference"