Skip to content

[Bug]: Keybindings using '+' render two blank keycap pills in Settings > Keybindings #40807

Closed

Description

@AymanKhan9

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Start T3 Code and open Settings → Keybindings.
  2. Scroll to Preview & diff (or search for preview.zoom).
  3. Look at the first Preview: Zoom In row (whose default binding is mod++ in packages/shared/src/keybindings.ts).

Expected behavior

The shortcut renders two keycap pills: Ctrl and + (or ⌘ and + on macOS).

Actual behavior

KeybindingPill in apps/web/src/components/settings/KeybindingsSettings.tsx splits the serialized row.key string ("mod++") on "+", producing ["mod", "", ""], which renders Ctrl followed by two empty keycap boxes instead of +. Any custom binding using + (such as + or mod+shift++) is affected the same way.

Impact

Minor bug or occasional failure

Version or commit

main @ 5fc2eb2f47

Environment

Linux, Chromium (web client via vp run dev)

Screenshots

Preview: Zoom In rendering two empty keycap pills

Settings > Keybindings full view before fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions