mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Prepend clipboard to query
This commit is contained in:
parent
694e504a19
commit
7ada82afd1
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@ namespace Flow.Launcher
|
||||||
{
|
{
|
||||||
if (System.Windows.Clipboard.ContainsText())
|
if (System.Windows.Clipboard.ContainsText())
|
||||||
{
|
{
|
||||||
_viewModel.ChangeQueryText(System.Windows.Clipboard.GetText().Replace("\n", String.Empty).Replace("\r", String.Empty));
|
var clipboardText = System.Windows.Clipboard.GetText().Replace("\r\n", " ");
|
||||||
|
QueryTextBox.SelectedText = clipboardText;
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue