Skip to content

feat(keyboard): a line break at the caret, for a field with lines - #119

Merged
mcereal merged 1 commit into
mainfrom
feat/keyboard-newline
Nov 14, 2026
Merged

mcereal merged 1 commit into
mainfrom
feat/keyboard-newline

Conversation

@mcereal

@mcereal mcereal commented Nov 14, 2026

Copy link
Copy Markdown
Owner

For inkos R8d (Notes). inkcell_keyboard_insert_text_at_caret() refuses every control character. That's right for a single-line field, but a multi-line field needs the one break its enter key makes.

  • inkcell_keyboard_newline_at_caret(kb, layout, text, size) inserts \n at the caret by the same keyboard_insert() and cap as typed text. Deleting it is the existing inkcell_keyboard_delete_at_caret(), since a newline is one cell.
  • Typed text still may not carry a newline.

Test: a break at a moved caret, the caret after it, delete takes it back, typed text with \n still refused, and the cap holds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VUf1KjJ3LhZrw5yTNk8LqB

inkcell_keyboard_insert_text_at_caret() refuses every control character,
which keeps a single-line field single; a field with lines - a note - needs
the one break its enter key makes. inkcell_keyboard_newline_at_caret()
inserts it by the same insert and cap as typed text; deleting it is the
existing delete, a newline being one cell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUf1KjJ3LhZrw5yTNk8LqB
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T22:11:30.722041Z
We couldn’t complete this review. Comment @codex review to try again.
cf32241 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mcereal
mcereal merged commit 91bce22 into main Nov 14, 2026
12 checks passed
@mcereal
mcereal deleted the feat/keyboard-newline branch November 14, 2026 22:39
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.

1 participant