- Remove Duplicated History Hotkey

- Add Select Last Item hotkey
This commit is contained in:
DB p 2024-04-16 02:21:29 +09:00
parent fc64d9ccb2
commit c0d41a358f
3 changed files with 17 additions and 4 deletions

View file

@ -74,6 +74,10 @@
Key="Home"
Command="{Binding SelectFirstResultCommand}"
Modifiers="Alt" />
<KeyBinding
Key="End"
Command="{Binding SelectLastResultCommand}"
Modifiers="Alt" />
<KeyBinding
Key="O"
Command="{Binding LoadContextMenuCommand}"
@ -102,10 +106,7 @@
Key="OemMinus"
Command="{Binding DecreaseMaxResultCommand}"
Modifiers="Control" />
<KeyBinding
Key="H"
Command="{Binding LoadHistoryCommand}"
Modifiers="Ctrl" />
<KeyBinding
Key="Enter"
Command="{Binding OpenResultCommand}"

View file

@ -351,6 +351,13 @@ namespace Flow.Launcher.ViewModel
SelectedResults.SelectFirstResult();
}
[RelayCommand]
private void SelectLastResult()
{
SelectedResults.SelectLastResult();
}
[RelayCommand]
private void SelectPrevPage()
{

View file

@ -117,6 +117,11 @@ namespace Flow.Launcher.ViewModel
SelectedIndex = NewIndex(0);
}
public void SelectLastResult()
{
SelectedIndex = NewIndex(Results.Count - 1);
}
public void Clear()
{
lock (_collectionLock)