Skip to content

feat: focus editor and move cursor to end on padding area click#86

Merged
j4rviscmd merged 1 commit intomainfrom
feat/editor-click-to-focus
Mar 27, 2026
Merged

feat: focus editor and move cursor to end on padding area click#86
j4rviscmd merged 1 commit intomainfrom
feat/editor-click-to-focus

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Clicking the bottom padding zone (pb-[60vh]) of the editor previously blurred the editor because the click target was outside the .bn-editor contenteditable region
  • Now clicking anywhere in the wrapper padding focuses the editor and places the cursor at the end of the last block, matching VSCode-like behavior

Test plan

  • Click the bottom padding area below editor content → editor focuses, cursor moves to end of last block
  • Click inside editor content → normal selection/editing behavior unchanged
  • Formatting toolbar, link toolbar, and search panel still work normally
  • Verify on both light and dark themes

🤖 Generated with Claude Code

Clicking the bottom padding zone of the editor (pb-[60vh]) previously
blurred the editor because the click target was outside the .bn-editor
contenteditable region. Now clicking anywhere in the wrapper padding
focuses the editor and places the cursor at the end of the last block.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 27, 2026
@j4rviscmd j4rviscmd merged commit 4aec5fb into main Mar 27, 2026
2 checks passed
@j4rviscmd j4rviscmd deleted the feat/editor-click-to-focus branch March 27, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant