Skip to content

Show which keymap is currently active on the keyboard - #3021

Merged
mondalaci merged 1 commit into
masterfrom
issue-2560-active-keymap-indicator
Jul 27, 2026
Merged

Show which keymap is currently active on the keyboard#3021
mondalaci merged 1 commit into
masterfrom
issue-2560-active-keymap-indicator

Conversation

@mondalaci

Copy link
Copy Markdown
Member

Summary

  • Parse CurrentKeymapIndex from GetDeviceState (byte 8) and surface it through the device poller
  • Show a sidebar dot on the live keymap and an (inactive) label in the keymap header when editing a different one
  • Gate the UI on device protocol ≥ 4.10.0; update get-device-state.ts to print keymapIndex

Closes #2560

Test plan

  • With firmware that supports device protocol ≥ 4.10.0, confirm the sidebar dot tracks the keyboard’s active keymap as you switch keymaps on the device
  • Open a non-active keymap and confirm (inactive) appears in the header with a tooltip naming the active keymap and mentioning the sidebar dot
  • Open the active keymap and confirm (inactive) is hidden
  • Confirm the default ★ and active dot can appear together without overlapping awkwardly
  • Run packages/usb/get-device-state.ts and confirm keymapIndex is printed
  • On older device protocol (< 4.10.0), confirm the dot and (inactive) are not shown

Made with Cursor

Parse CurrentKeymapIndex from GetDeviceState and surface it in the
sidebar and keymap header so users can tell the live keymap from the
default one.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mondalaci
mondalaci merged commit 2a9bde6 into master Jul 27, 2026
5 checks passed
@mondalaci
mondalaci deleted the issue-2560-active-keymap-indicator branch July 27, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cant remap Fn keys with agent on OS X

1 participant