microsoft / microsoft/PowerToys
Keyboard Manager text shortcut pastes previous clipboard content on first press
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
### Microsoft PowerToys version
Release version: v0.98.1
### Installation method
Microsoft Store
### Area(s) with issue?
Keyboard Manager
### Steps to reproduce
1. Open PowerToys Keyboard Manager
2. Assign a shortcut (e.g. Win + 9) to a text string
3. Copy any text to clipboard
4. Press the assigned shortcut once
5. Press it again
### ✔️ Expected Behavior
The assigned text should be pasted immediately on the first key press.
### ❌ Actual Behavior
First key press pastes the previous clipboard content.
Second key press pastes the assigned text correctly.
### Upload Bug Report ZIP-file
_No response_
### Additional Information
Reproducibility: Always (100%)
This appears to be a clipboard timing issue.
It seems the clipboard content is updated after the paste event is triggered, causing the first paste to use the previous clipboard data.
### Other Software
_No response_
Contributor guide
Research direction
Start by reproducing the issue in Keyboard Manager with a text shortcut and an existing clipboard value. Trace the shortcut's text-paste path and clipboard update timing. Done means the assigned text is pasted on the first key press while preserving the documented second-press behavior as correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100