mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-19 15:03:36 +08:00
Merge pull request #89 from theClueless/addAltHomeforFirstResult
Addalthomeforfirstresult
This commit is contained in:
commit
4d902c01a6
@ -36,6 +36,7 @@
|
|||||||
<KeyBinding Key="P" Modifiers="Ctrl" Command="{Binding SelectPrevItemCommand}"></KeyBinding>
|
<KeyBinding Key="P" Modifiers="Ctrl" Command="{Binding SelectPrevItemCommand}"></KeyBinding>
|
||||||
<KeyBinding Key="K" Modifiers="Ctrl" Command="{Binding SelectPrevItemCommand}"></KeyBinding>
|
<KeyBinding Key="K" Modifiers="Ctrl" Command="{Binding SelectPrevItemCommand}"></KeyBinding>
|
||||||
<KeyBinding Key="U" Modifiers="Ctrl" Command="{Binding SelectPrevPageCommand}"></KeyBinding>
|
<KeyBinding Key="U" Modifiers="Ctrl" Command="{Binding SelectPrevPageCommand}"></KeyBinding>
|
||||||
|
<KeyBinding Key="Home" Modifiers="Alt" Command="{Binding SelectFirstResultCommand}"></KeyBinding>
|
||||||
<KeyBinding Key="O" Modifiers="Ctrl" Command="{Binding LoadContextMenuCommand}"></KeyBinding>
|
<KeyBinding Key="O" Modifiers="Ctrl" Command="{Binding LoadContextMenuCommand}"></KeyBinding>
|
||||||
<KeyBinding Key="H" Modifiers="Ctrl" Command="{Binding LoadHistoryCommand}"></KeyBinding>
|
<KeyBinding Key="H" Modifiers="Ctrl" Command="{Binding LoadHistoryCommand}"></KeyBinding>
|
||||||
<KeyBinding Key="Enter" Modifiers="Shift" Command="{Binding LoadContextMenuCommand}"></KeyBinding>
|
<KeyBinding Key="Enter" Modifiers="Shift" Command="{Binding LoadContextMenuCommand}"></KeyBinding>
|
||||||
|
@ -126,6 +126,8 @@ namespace Wox.ViewModel
|
|||||||
SelectedResults.SelectPrevPage();
|
SelectedResults.SelectPrevPage();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
SelectFirstResultCommand = new RelayCommand(_ => SelectedResults.SelectFirstResult());
|
||||||
|
|
||||||
StartHelpCommand = new RelayCommand(_ =>
|
StartHelpCommand = new RelayCommand(_ =>
|
||||||
{
|
{
|
||||||
Process.Start("http://doc.wox.one/");
|
Process.Start("http://doc.wox.one/");
|
||||||
@ -268,6 +270,7 @@ namespace Wox.ViewModel
|
|||||||
public ICommand SelectPrevItemCommand { get; set; }
|
public ICommand SelectPrevItemCommand { get; set; }
|
||||||
public ICommand SelectNextPageCommand { get; set; }
|
public ICommand SelectNextPageCommand { get; set; }
|
||||||
public ICommand SelectPrevPageCommand { get; set; }
|
public ICommand SelectPrevPageCommand { get; set; }
|
||||||
|
public ICommand SelectFirstResultCommand { get; set; }
|
||||||
public ICommand StartHelpCommand { get; set; }
|
public ICommand StartHelpCommand { get; set; }
|
||||||
public ICommand LoadContextMenuCommand { get; set; }
|
public ICommand LoadContextMenuCommand { get; set; }
|
||||||
public ICommand LoadHistoryCommand { get; set; }
|
public ICommand LoadHistoryCommand { get; set; }
|
||||||
|
@ -107,6 +107,11 @@ namespace Wox.ViewModel
|
|||||||
SelectedIndex = NewIndex(SelectedIndex - MaxResults);
|
SelectedIndex = NewIndex(SelectedIndex - MaxResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SelectFirstResult()
|
||||||
|
{
|
||||||
|
SelectedIndex = NewIndex(0);
|
||||||
|
}
|
||||||
|
|
||||||
public void Clear()
|
public void Clear()
|
||||||
{
|
{
|
||||||
Results.Clear();
|
Results.Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user