mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #320] Karabiner is bypassed by lan-mouse #169
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TimMensch on GitHub (Sep 2, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/320
I'm a longtime Windows user, but I need to be able to use a Mac for work. I've reconfigured my Mac with Karabiner to have what my fingers consider a "sane" set of keyboard features.
Switching to
lan-mouse, Karabiner is completely bypassed and I again can't use the Mac with any dexterity. It completely kills the usability oflan-mousefor me.Karabiner needs to see a keyboard device that it can grab they keys from and translate them based on all of its installed rules. The fix for this would be to create a virtual keyboard (like Karabiner does itself) and route keys through that virtual keyboard instead of however
lan-mousecurrently triggers them.Karabiner is a very core tool on Mac, and I'm surprised that no software-KVM actually supports it. I was hoping that
lan-mousewould succeed where all of the Synergy-family products failed, but no, it has the same failure.Any chance someone can fix this? I can't really justify spending the time to add this feature myself.
@johnhamelink commented on GitHub (Sep 3, 2025):
There are a few apps that have this problem - Xcode is another one, where some of the dropdowns don't interact with lan-mouse at all, such as in this example:
@feschber commented on GitHub (Sep 3, 2025):
The input emulation on MacOS is pretty bare bones atm. It might be worth looking into https://developer.apple.com/documentation/hiddriverkit to emulate a physical device. Otherwise I see no chance to get this to work with other input modifying software, as those probably operate on the same level.
And heads up: Never download any files from comments in github issues, there are a lot of malicious bots out there spreading malware.
@TimMensch commented on GitHub (Sep 4, 2025):
Additional research comes across this:
https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice
It's what Karabiner itself uses, but I'm betting it's trivial to change some IDs and deploy it a second time to be the keyboard/mouse for lan-mouse.
@emsi commented on GitHub (Jan 9, 2026):
Using Karabiner-DriverKit-VirtualHIDDevice is probably the best approach since people using remote keyboard/mouse most often than not are using karabiner to tailor macos to their muscle memory.
There are some considerations though as pqrs’ VirtualHID stack is designed so only root can send events to the virtual devices (to prevent arbitrary apps from injecting keystrokes). (https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice)