Skip to content

fix: show platform-specific shortcut labels in toolbar tooltips - #135

Open
shrutig-blip wants to merge 1 commit into
Rinava:mainfrom
shrutig-blip:fix/issue-41-platform-shortcuts-clean
Open

fix: show platform-specific shortcut labels in toolbar tooltips#135
shrutig-blip wants to merge 1 commit into
Rinava:mainfrom
shrutig-blip:fix/issue-41-platform-shortcuts-clean

Conversation

@shrutig-blip

Copy link
Copy Markdown
Contributor

Summary

Fixes platform-specific shortcut labels in the Markdown toolbar tooltips.

The keyboard shortcut handler already detects the user's platform and uses Ctrl on Windows/Linux and on macOS, but the toolbar tooltips always displayed macOS shortcuts. This change derives the tooltip labels from the same platform check so they accurately reflect the shortcuts available on the current OS.

Changes

  • Detect the current platform (macOS vs Windows/Linux).
  • Display in tooltip labels on macOS.
  • Display Ctrl in tooltip labels on Windows/Linux.
  • Keep tooltip labels consistent with the existing keyboard shortcut behavior.

Closes #41

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

@shrutig-blip is attempting to deploy a commit to the rinava's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Toolbar shortcut tooltips hardcode ⌘ — show Ctrl on Windows/Linux

1 participant