mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[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:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -176,6 +176,15 @@
|
||||
</labs:SettingsCard>
|
||||
</labs:SettingsExpander.Items>
|
||||
</labs:SettingsExpander>
|
||||
|
||||
<labs:SettingsCard
|
||||
x:Uid="PowerLauncher_TabSelectsContextButtons"
|
||||
HeaderIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily}, Glyph=}">
|
||||
<ToggleSwitch
|
||||
x:Uid="ToggleSwitch"
|
||||
IsOn="{x:Bind ViewModel.TabSelectsContextButtons, Mode=TwoWay}" />
|
||||
</labs:SettingsCard>
|
||||
|
||||
</controls:SettingsGroup>
|
||||
|
||||
<!--<ComboBox x:Uid="PowerLauncher_SearchResultPreference"
|
||||
|
||||
Reference in New Issue
Block a user