mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-07-10 04:20:23 +02:00
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This PR attempts to fix some of the issues that were introduced in 0.98.0 with text replacement <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: #46498 - [x] Closes: #46440 - [x] Closes: #46366 <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments In 0.98.0 I made a change to support multiline text replacement using Ctrl + V. This was very inconsistent so I have reverted back to _basically_ the same approach we were using before except now when we encounter a newline indicator we send "Shift + Enter" so that this works in chat boxes and plan editors. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Manual testing with single line and multiline replacements in Teams, Terminal, Git bash, Edge, etc