mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use caret position for inserted text
This commit is contained in:
parent
7ada82afd1
commit
e9dba45f82
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ namespace Flow.Launcher
|
|||
if (System.Windows.Clipboard.ContainsText())
|
||||
{
|
||||
var clipboardText = System.Windows.Clipboard.GetText().Replace("\r\n", " ");
|
||||
QueryTextBox.SelectedText = clipboardText;
|
||||
_viewModel.ChangeQueryText(QueryTextBox.Text.Insert(QueryTextBox.CaretIndex, clipboardText));
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue