Skip to content

Commit fa783a9

Browse files
committed
bind Ctrl + R to re-running the current query
1 parent 0b05e95 commit fa783a9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
Key="O"
8787
Command="{Binding LoadContextMenuCommand}"
8888
Modifiers="Ctrl" />
89+
<KeyBinding
90+
Key="R"
91+
Command="{Binding ReQueryCommand}"
92+
Modifiers="Ctrl" />
8993
<KeyBinding
9094
Key="H"
9195
Command="{Binding LoadHistoryCommand}"

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Threading;
@@ -205,6 +205,15 @@ private void LoadHistory()
205205
}
206206
}
207207

208+
[RelayCommand]
209+
private void ReQuery()
210+
{
211+
if (SelectedIsFromQueryResults())
212+
{
213+
QueryResults(reQuery: true);
214+
}
215+
}
216+
208217
[RelayCommand]
209218
private void LoadContextMenu()
210219
{

0 commit comments

Comments
 (0)