Skip to content

[KBM] Fixes to text replacement issues#46794

Merged
DHowett merged 2 commits intomicrosoft:mainfrom
Jaylyn-Barbee:jay/text-remappings-fix
Apr 9, 2026
Merged

[KBM] Fixes to text replacement issues#46794
DHowett merged 2 commits intomicrosoft:mainfrom
Jaylyn-Barbee:jay/text-remappings-fix

Conversation

@Jaylyn-Barbee
Copy link
Copy Markdown
Contributor

@Jaylyn-Barbee Jaylyn-Barbee commented Apr 6, 2026

Summary of the Pull Request

This PR attempts to fix some of the issues that were introduced in 0.98.0 with text replacement

PR Checklist

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.

Validation Steps Performed

Manual testing with single line and multiline replacements in Teams, Terminal, Git bash, Edge, etc

@DHowett DHowett closed this Apr 9, 2026
@DHowett DHowett reopened this Apr 9, 2026
@DHowett DHowett merged commit ad60090 into microsoft:main Apr 9, 2026
12 of 15 checks passed
zateutsch pushed a commit that referenced this pull request Apr 9, 2026
<!-- 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
@LegendaryBlair LegendaryBlair added this to the PowerToys 0.99 milestone Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.99 Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager

Projects

None yet

5 participants