Skip to content

fix(builder): keep Enter as newline on touch keyboards - #1568

Merged
realcodesiman merged 3 commits into
mainfrom
fix/touch-enter-keyboard
Oct 28, 2026
Merged

realcodesiman merged 3 commits into
mainfrom
fix/touch-enter-keyboard

Conversation

@realcodesiman

@realcodesiman realcodesiman commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Keep Enter as a newline on touch keyboards while preserving desktop Enter-to-send.
  • Preserve Shift+Enter and IME composition behavior in inbox and embedded webchat composers.

Changes

  • Add a shared Enter-send decision helper and regression coverage.
  • Add a touch-device media-query hook and apply it to both message composers.
  • Set the appropriate enterKeyHint for touch and desktop keyboards.

Test plan

  • pnpm lint
  • pnpm --filter builder test -- __tests__/should-send-on-enter.test.ts __tests__/message-input-client-id.test.tsx
  • Lefthook pre-commit workspace typecheck
  • Manual desktop and touch composer verification

@github-actions github-actions Bot added the bug Something isn't working as expected label Oct 27, 2026
@realcodesiman
realcodesiman merged commit 010fb21 into main Oct 28, 2026
14 checks passed
@realcodesiman
realcodesiman deleted the fix/touch-enter-keyboard branch October 28, 2026 04:28
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
* fix(builder): keep Enter as newline on touch keyboards

* fix(builder): detect touch keyboards before submitting

* fix(builder): submit keyboard shortcuts on touch devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant