mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Remove Duplicated History Hotkey
- Add Select Last Item hotkey
This commit is contained in:
parent
fc64d9ccb2
commit
c0d41a358f
3 changed files with 17 additions and 4 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -351,6 +351,13 @@ namespace Flow.Launcher.ViewModel
|
|||
SelectedResults.SelectFirstResult();
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void SelectLastResult()
|
||||
{
|
||||
SelectedResults.SelectLastResult();
|
||||
}
|
||||
|
||||
|
||||
[RelayCommand]
|
||||
private void SelectPrevPage()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -117,6 +117,11 @@ namespace Flow.Launcher.ViewModel
|
|||
SelectedIndex = NewIndex(0);
|
||||
}
|
||||
|
||||
public void SelectLastResult()
|
||||
{
|
||||
SelectedIndex = NewIndex(Results.Count - 1);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
lock (_collectionLock)
|
||||
|
|
|
|||
Loading…
Reference in a new issue