Skip to content

fix(command-line): hide Ctrl/Cmd + Shift + P hint on Firefox (@d1rshan)#7690

Closed
d1rshan wants to merge 4 commits intomonkeytypegame:masterfrom
d1rshan:fix/firefox-command-line-keybind
Closed

fix(command-line): hide Ctrl/Cmd + Shift + P hint on Firefox (@d1rshan)#7690
d1rshan wants to merge 4 commits intomonkeytypegame:masterfrom
d1rshan:fix/firefox-command-line-keybind

Conversation

@d1rshan
Copy link

@d1rshan d1rshan commented Mar 20, 2026

Summary

Hide the Cmd/Ctrl + Shift + P shortcut on Firefox, where it is reserved for private windows and not usable by the app.

Changes

  • Hide Cmd/Ctrl + Shift + P from command palette hints on Firefox
  • Show only available shortcuts (e.g. Esc) in:
    • Footer
    • Settings
    • About

Notes

UI-only change. No changes to keybind logic.

Testing

  • Verified in Firefox: shortcut is hidden and only Esc is shown
  • Verified in Chrome: shortcut is still displayed

Closes #7689

Copilot AI review requested due to automatic review settings March 20, 2026 09:13
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Mar 20, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Mar 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts frontend UI shortcut hints to avoid advertising Ctrl/Cmd + Shift + P on Firefox, where that shortcut is reserved by the browser and can’t be used reliably for opening Monkeytype’s command line.

Changes:

  • Hide Ctrl/Cmd + Shift + P in shortcut hint text when running on Firefox.
  • Continue showing the Esc/Tab (depending on quick restart setting) hint in Settings, Footer keytips, and About page.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
frontend/src/ts/pages/settings.ts Updates Settings tip HTML to omit the Ctrl/Cmd + Shift + P hint on Firefox.
frontend/src/ts/components/pages/AboutPage.tsx Updates About page “keybinds” copy to conditionally omit the Ctrl/Cmd + Shift + P hint on Firefox.
frontend/src/ts/components/layout/footer/Keytips.tsx Updates footer keytips to conditionally omit the Ctrl/Cmd + Shift + P hint on Firefox.

Copy link
Member

@Miodec Miodec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address copilot comments.

@Miodec Miodec added waiting for update Pull requests or issues that require changes/comments before continuing and removed waiting for review Pull requests that require a review before continuing labels Mar 21, 2026
@d1rshan d1rshan force-pushed the fix/firefox-command-line-keybind branch from 39d517c to d897d43 Compare March 22, 2026 06:33
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Mar 22, 2026
@d1rshan d1rshan requested a review from Copilot March 22, 2026 06:36
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Mar 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

@Miodec
Copy link
Member

Miodec commented Mar 22, 2026

Hey sorry, i completely forgot that #7691 will pretty much completely replace your changes. Well include your name in the pr title to still credit you.

@Miodec Miodec closed this Mar 22, 2026
@d1rshan d1rshan deleted the fix/firefox-command-line-keybind branch March 22, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firefox: Cmd/Ctrl + Shift + P shown in UI but not usable

4 participants