Repository navigation
fix(devices): list a receiver's connected mouse as a mouse, not a keyboard #1364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: OpenMouse-Project/openmouse
Length of output: 5587
Script executed:
Repository: OpenMouse-Project/openmouse
Length of output: 34105
Script executed:
Repository: OpenMouse-Project/openmouse
Length of output: 8869
Preserve keyboard access without gating the mouse record on
noKeyboardPaired.When a mouse activation records a shared receiver while a keyboard interface is also present,
sidebarEntriesselects the remembered mouse and does not create a keyboard card. Clicking that card recomputes the group candidates, where the remembered mouse outranks the keyboard sibling, so the keyboard cannot be selected through the sidebar.Do not apply the fallback’s
noKeyboardPairedgate to all direct activations. The Keychron Link-KM test requires the mouse interface to remain selectable after it answers. Add a keyboard-specific sidebar selection path that carries and activates theKeyboardClientinstead of recomputing the mouse-first candidates.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged, leaving this for a follow-up. A receiver with both a keyboard and a mouse paired gets one card, and
selectAuthorizedDevicewas already mouse-first among a group's candidates before this PR, so clicking that card never reached the keyboard. A Logitech receiver with a keyboard paired is never recorded here, because its keyboard read succeeds and nothing activates the mouse. What this does change is the reload reconnect on a Keychron Link-KM whose mouse was connected directly. The real fix is to read the receiver's pairing table and list one card per paired device. That is in progress as a pairing-register reader in @openmouse/protocol.