Skip to content

Commit 18d6f67

Browse files
authored
Merge pull request #2612 from AsafMah/ctrlshiftc
Added ctrl+shift+c
2 parents 0ab26d6 + 10ebda8 commit 18d6f67

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@
186186
Key="F12"
187187
Command="{Binding ToggleGameModeCommand}"
188188
Modifiers="Ctrl" />
189+
<KeyBinding
190+
Key="C"
191+
Modifiers="Ctrl+Shift"
192+
Command="{Binding CopyAlternativeCommand}" />
189193
<KeyBinding
190194
Key="{Binding PreviewHotkey, Converter={StaticResource StringToKeyBindingConverter}, ConverterParameter='key'}"
191195
Command="{Binding TogglePreviewCommand}"

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,17 @@ public void ToggleGameMode()
371371
{
372372
GameModeStatus = !GameModeStatus;
373373
}
374+
375+
[RelayCommand]
376+
public void CopyAlternative()
377+
{
378+
var result = Results.SelectedItem?.Result?.CopyText;
379+
380+
if (result != null)
381+
{
382+
App.API.CopyToClipboard(result, directCopy: false);
383+
}
384+
}
374385

375386
#endregion
376387

0 commit comments

Comments
 (0)