Skip to content

fix: display leader key hints in lowercase to match actual keypresses#387

Open
kwame-Owusu wants to merge 2 commits into
ZenNotes:mainfrom
kwame-Owusu:fix/leader-key-overlay-lowercase
Open

fix: display leader key hints in lowercase to match actual keypresses#387
kwame-Owusu wants to merge 2 commits into
ZenNotes:mainfrom
kwame-Owusu:fix/leader-key-overlay-lowercase

Conversation

@kwame-Owusu

Copy link
Copy Markdown

Description:

When pressing the leader key (Space), the which-key overlay displayed key hints in uppercase (e.g., O, F, S) due to the CSS uppercase class on the key label elements. However, the matching logic expects lowercase input, pressing uppercase O (Shift+O) does not trigger the action, only lowercase o does.
This mismatch is confusing for users who see "O" in the overlay and naturally try pressing Shift+O.

Fix

Remove the uppercase CSS class from the key label in WhichKeyOverlay.tsx so the overlay displays keys exactly as they should be pressed (lowercase o, f, s, etc.). The "LEADER" prefix badge still uses its own uppercase class since that's a label, not a key to press.

Test

now the preview shows action keys in lowercase as per the screenshot
image

@kwame-Owusu
kwame-Owusu requested a review from adibhanna as a code owner July 13, 2026 20:55
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