Skip to content

Commit

Permalink
Revert the behaviour of consuming all paste events when editing text
Browse files Browse the repository at this point in the history
Bug: 2047495
  • Loading branch information
cameronwhite committed Dec 31, 2023
1 parent 80650c8 commit ed7db76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pinta.Tools/Tools/TextTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1115,12 +1115,12 @@ protected override async Task<bool> OnHandlePaste (Document document, Clipboard
if (!is_editing)
return false;

if (await CurrentTextEngine.PerformPaste (cb))
if (await CurrentTextEngine.PerformPaste (cb)) {
RedrawText (true, true);
return true;
}

// Always consume the paste event when editing, otherwise this will pull the user out
// of editing to attempt to paste an image.
return true;
return false;
}

protected override bool OnHandleCopy (Document document, Clipboard cb)
Expand Down

0 comments on commit ed7db76

Please sign in to comment.