microsoft / microsoft/PowerToys
NumLock states
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
### Microsoft PowerToys version
0.97.0
### Installation method
PowerToys auto-update
### Area(s) with issue?
Mouse Without Borders
### Steps to reproduce
Change numlock state on remote computer, move mouse back to local computer. (then change numlock state at local computer, and back to remote)
### ✔️ Expected Behavior
Remote and local computer maintain their own numlock states. (As how caps lock states behave.)
### ❌ Actual Behavior
0. inital state: (local: off, remote: off)
1. press numlock on remote:
- numlock state is on on remote: pressing numpad keys now input numeric digits on remote computer
2. mouse cursor back to local:
- numlock is also in on state on local: numpad keys produce numeric digit characters
3. pressing numlock on local:
- numlock remains in on state; numlock indicator now lights up on keyboard: numpad still produce digit characters
4. pressing numlock again on local:
- numlock goes off on local computer; indicator goes off on keyboard: numpad keys now work like cursor control keys
5. mouse cursor to remote again:
- numlock in hybrid state
- directly pressing numpad keys works like cursor control keys, like numlock is off
- applying modifiers works like numlock is on: shift+numpad work like cursor control keys but do not do text selection; shift-./ctrl-0/ctrl-0 does not do cut, copy or paste
6. press numlock on remote again:
- numlock state is on on remote: numpad keys input numeric digits again
7-1. mouse cursor back to local again:
7-2. press numlock on local:
7-3. press numlock on local again:
- behave just the same as step 2-4
8. move mouse cursor to remote yet again:
- numlock in off state on remote: numpad keys act like cursor controls again, applying modifier keys do text selection and cut/copy/paste.
### Additional Information
both computers:
windows 11
installed as system
run as service/admin
### Other Software
_No response_
Contributor guide
Research direction
Start by reproducing the NumLock synchronization steps in Mouse Without Borders on two Windows 11 computers, confirming the local and remote indicator and numpad behavior at each cursor switch. Trace the existing handling of keyboard lock states, using Caps Lock behavior as the comparison point. Done means each computer preserves its own NumLock state when control moves between them, including modifier combinations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100