microsoft / microsoft/PowerToys

Mouse without borders has issues when the key has "\" in it

Open
#45,761 0 comments 0 reactions 0 assignees View on GitHub
Issue-Bug Needs-Triage Product-Mouse Without Borders
Dominant language
C
Stars
139k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

### Microsoft PowerToys version

0.97.2

### Installation method

Microsoft Store

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

When your key from other machine contains "\" the mapping to a new machine is problematic. When you paste the value eg) "123\n3" in to the text box, the tool is comparing it directly. However on the host machine, the value is stored as "123\\n3". So it appears that the tool is considering "\" as escape character but doesnt apply the same logic when it comes to doing a match.

### ✔️ Expected Behavior

Comparison is done based on what I can see

### ❌ Actual Behavior

Compares the stored value with the entered one

### Additional Information

Directly updating the json file is the workaround

### Other Software

_No response_

Contributor guide

Open the contributing guide

Research direction

Start in the Mouse Without Borders implementation and trace how the host key is stored and how the value entered in the machine-connection text box is compared. Reproduce the case with a key containing a backslash, then verify that the comparison succeeds without requiring a direct JSON-file edit.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.