mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5794] [MERGED] fix(common): ignore shift keybindings in CodeMirror editors #5354
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#5354
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/5794
Author: @Leon-Luu
Created: 1/21/2026
Status: ✅ Merged
Merged: 1/23/2026
Merged by: @jamesgeorge007
Base:
next← Head:fix/keybinding_ignore_on_codemirror📝 Commits (2)
dcb5cd6fix: keybinding ignore on codemirror editor435afcaMerge branch 'main' into fix/keybinding_ignore_on_codemirror📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
packages/hoppscotch-common/src/helpers/keybindings.ts(+2 -2)📄 Description
Issue: Typing "/" in the pre-request or post-request script editor was opening the Support menu (GitHub issue #5777)
Root Cause: The [shift-/] keybinding (which opens the support modal) was being triggered even when typing in a CodeMirror editor. The keybinding handler only checked for regular input elements but not for CodeMirror editors.
Solution: Updated the keybinding handler in keybindings.ts to ignore [shift]+ any key combinations when typing in a CodeMirror editor, just like it does for regular input elements.
Closes #
https://github.com/hoppscotch/hoppscotch/issues/5777
What's changed
Notes to reviewers
Summary by cubic
Stop the Support modal from opening when typing in CodeMirror-based script editors. We now ignore Shift-modified shortcuts (e.g., Shift+/) while the editor is focused.
Written for commit
435afca4fa. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.