mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5229] [MERGED] feat(desktop): tab shortcuts discoverability #5118
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5229
Author: @CuriousCorrelation
Created: 7/8/2025
Status: ✅ Merged
Merged: 7/9/2025
Merged by: @jamesgeorge007
Base:
patch← Head:feat-desktop-discover-keyboard-shortcuts📝 Commits (1)
bc39355feat(desktop): tab shortcuts discoverability📊 Changes
2 files changed (+53 additions, -2 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+10 -0)📝
packages/hoppscotch-common/src/helpers/shortcuts.ts(+43 -2)📄 Description
This adds tab navigation shortcuts to the shortcuts help dialog for desktop users and conditionally shows them only in desktop mode.
The shortcuts help now includes a "Tabs" section with all available tab management shortcuts, but only displays them when running in desktop kernel mode to avoid confusing web users with non-functional shortcuts.
Closes FE-917
The desktop app already had functional tab navigation shortcuts, but they weren't documented in the app's shortcuts help dialog (accessible via
?orCmd/Ctrl+/). This made the shortcuts less discoverable for users who wanted to learn about available keyboard controls.The shortcuts helper now uses
getKernelMode()to determine whether to include desktop-specific shortcuts in the help dialog.The call to
getKernelMode()is quite cheap so there won't be any issues if the call was made during every re-render.What's changed
shortcuts.tsbased on kernel mode detectionen.jsonwith all tab navigation shortcutsImplementation
The solution splits shortcuts into
baseShortcuts(available on all platforms) anddesktopShortcuts(desktop-only), then conditionally combines them based on the current kernel mode.Notes to reviewers
This change only affects the shortcuts help dialog display and doesn't modify any functional behavior. All existing shortcuts continue to work exactly as before.
Testing should verify that Desktop app shows the new "Tabs" section in shortcuts help and Web app doesn't.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.