microsoft / microsoft/calculator
keyboard input sometimes broken when multiple instances open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 31.1k
- Forks
- 5.8k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
If you have more than one instance of Calculator open, which ever instance is not the "original" will lose certain keyboard functions.
For example pressing escape to clear, backspace to backspace and enter to sum. These keyboard keys no longer work on the second instance. I cannot reproduce this 100% of the time. But every time I have encountered this problem, it was when multiple instances were opened. And
Steps To Reproduce
- Open calculator
- Hold shift and lose focus of the window (easiest way to do this is just to hold shift and left click somewhere outside the window)
- Regain focus of the window
- Press keys such as
enterbackspaceescapeplxyand probably more
Expected behavior
Keyboard input should be observed no matter how many instances of calculator are open.
Device and Application Information
- OS Build: 10 0 17134 0"
- Architecture: X64
- Application Version: 10.1903.21.0
- Region: en-US
- Dev Version Installed: False
Note: A team member edited this comment to clarify steps to reproduce.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the listed focus-change sequence with multiple Calculator instances, then trace the application's keyboard-input handling. Done means Enter, Backspace, Escape, P, L, and X/Y continue to work after focus is lost and regained, regardless of the number of instances.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100