Skip to content

fix: ctrl-k behavior on macOS - #2052

Merged
Philipinho merged 3 commits into
docmost:mainfrom
notpeter:cmd_k
Apr 30, 2026
Merged

Philipinho merged 3 commits into
docmost:mainfrom
notpeter:cmd_k

Conversation

@notpeter

@notpeter notpeter commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes a bug where on macOS ctrl-k does two things (1) cuts to the end of the line (2) triggers the search prompt. I changed it so that search is explicitly cmd-k on macOS/iOS and ctrl-k everywhere else, which fixes ctrl-k on macOS.

I also:

  • Made it so the search bar shows the cmd-k suggestion on Apple machines
  • Narrowed the no-op ctrl-s / cmd-s to be platform specific -- I don't think win+s (Windows Search) would've made it to the browser anyways.

Tested locally and it seemed to work as expected.
Screenshot 2026-03-25 at 12 53 40 PM

AI Notice: This PR was Claude Code assisted.

Use cmd-k on macOS/iOS for search and keep ctrl-k everywhere else.

Fixes a bug where ctrl-k on macOS, which cuts to the end of the line,
was also triggering the search prompt.
@CLAassistant

CLAassistant commented Mar 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Yundi339

Yundi339 commented Apr 21, 2026 •

Copy link
Copy Markdown

Hi, Does this also need to be modified?
comment-editor.tsx:86 Ctrl+Enter to submit a comment

@notpeter

Copy link
Copy Markdown
Contributor Author

Hi, Does this also need to be modified? comment-editor.tsx:86 Ctrl+Enter to submit a comment

Good catch. Changed there too.

@Philipinho

Copy link
Copy Markdown
Member

Thanks for contributing.

@Philipinho
Philipinho merged commit b16f1e5 into docmost:main Apr 30, 2026
1 check passed
@notpeter
notpeter deleted the cmd_k branch May 1, 2026 01:58
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.

4 participants