Skip to content

feat(devices): add K400 Plus Fn swap, disable keys and touchpad settings - #1861

Draft
Axhyy wants to merge 3 commits into
OpenMouse-Project:mainfrom
Axhyy:feat/logitech-k400
Draft

Axhyy wants to merge 3 commits into
OpenMouse-Project:mainfrom
Axhyy:feat/logitech-k400

Conversation

@Axhyy

@Axhyy Axhyy commented Dec 6, 2026 •

Copy link
Copy Markdown

Summary

UI for the Logitech K400 / K400 Plus settings added in OpenMouse-Project/keyboard-protocol#27:

  • An Fn-key swap switch on the keyboard overview, with a note.
  • A Disable keys card with Caps Lock, Num Lock, Scroll Lock, Insert and Windows switches. Only keys the keyboard reports appear.
  • A Touchpad card: a pointer-speed slider (shown as % of normal), switches for natural scrolling, vertical and horizontal two-finger scrolling, and tap-to-click (same as Fn + left click). Notes say which settings reset when the keyboard powers off. On the K400 Plus that is everything except the tap-to-click switch: a power cycle cleared the Fn swap, the disabled keys, pointer speed and the scrolling switches.
  • The K400 Plus product image (public/devices/logitech-k400-plus.png, provenance noted in public/devices/README.md).

Gestures that had no effect on hardware (taps, edge swipes, zoom) are left out of the UI.

Draft: waiting on a package release

This imports new exports (LogitechDisableKey, LOGITECH_POINTER_SCALE_NORMAL, setFnInversion, …) from @openmouse/keyboard-protocol. npm run build fails against the pinned 1.10.0 until keyboard-protocol#27 is released and the dependency is bumped. I'll bump it here once a version is published.

Test plan

  • npm run build and npm test (867/867) against the local keyboard-protocol build
  • npm test passes on the pinned dependencies
  • Real K400 Plus in Chrome: Fn swap, disable keys, pointer speed and natural scrolling all change the keyboard's behaviour

🤖 Generated with Claude Code

Note

Add Logitech K400 Plus Fn swap, disabled-key, and touchpad settings

  • Adds command variants for Fn inversion, disabled keys, touchpad gestures, and pointer speed in logitech-keyboard.ts. Each handler checks the reported keyboard state for the capability and throws when unsupported. Gesture changes also require the gesture be marked changeable.
  • Renders new UI controls in LogitechKeyboardPanel.tsx and LogitechInputCards.tsx: switches for supported keys (Caps Lock, Num Lock, Scroll Lock, Insert, Windows), ordered gesture toggles, and a pointer-speed slider using reported bounds with a step of 8. Shows a volatility note when gestures are nonpersistent or pointer speed is available.
  • Adds English strings and fallback strings for the new controls, plus a K400 Plus device image resolved via computeDeviceImageFilename and LOCAL_OVERRIDES in device-images.ts.
  • Behavioral Change: LogitechKeyboardClient now rejects writes for settings the reported state does not list; previously no commands existed for these settings.

Macroscope summarized 3a6c5c7. (Automatic summaries will resume when PR exits draft mode or review begins).

Show the Fn-key swap, the disable-keys switches, pointer speed and the
touchpad scrolling gestures for Logitech keyboards that support them,
and add the K400 Plus product image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Axhyy and others added 2 commits December 5, 2026 23:48
A power cycle showed the K400 Plus loses the Fn swap and the disabled
keys too, so both cards now note it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fn inversion on means the top row sends media keys without Fn (the K400
Plus power-on default), so the switch showed and wrote the opposite of
its label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant