Skip to content

Commit

Permalink
Merge pull request #3369 from AvaloniaUI/fixes/2732-textbox-undo
Browse files Browse the repository at this point in the history
Snapshot TextBox undo text after paste.
  • Loading branch information
grokys committed Dec 19, 2019
2 parents e7f546e + 4c2b77f commit e48bbe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Controls/TextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,10 @@ private async void Paste()
{
return;
}

_undoRedoHelper.Snapshot();
HandleTextInput(text);
_undoRedoHelper.Snapshot();
}

protected override void OnKeyDown(KeyEventArgs e)
Expand Down

0 comments on commit e48bbe6

Please sign in to comment.