Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change key bindings for folding in PGCodeMirror. (Hotfix of #2594) #2597

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

somiaj
Copy link
Contributor

@somiaj somiaj commented Oct 8, 2024

By default code mirror uses Shift-Ctrl-F for find/replace and Shift-Ctrl-G for find previous. These key bindings were overwritten when folding was added.

This changes the fold binding to Shift-Ctrl-[ (or Shift-Cmd-[), fold all to Ctrl-Alt-[ (Cmd-Alt-[) and unfold all to Ctrl-Alt-] (Cmd-Alt-]), so they no longer interfere with the find/replace key bindings.

drgrice1
drgrice1 previously approved these changes Oct 8, 2024
By default code mirror uses Shift-Ctrl-F for find/replace
and Shift-Ctrl-G for find previous. These key bindings were
overwritten when folding was added.

This changes the fold binding to Shift-Ctrl-[ (or Shift-Cmd-[),
fold all to Ctrl-Alt-[ (Cmd-Alt-[) and unfold all to Ctrl-Alt-]
(Cmd-Alt-]), so they no longer interfere with the find/replace
key bindings.
@somiaj somiaj force-pushed the code-mirror-key-bindings-hotfix branch from 29092ab to 3696063 Compare October 8, 2024 19:22
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.

2 participants