Skip to content

fix: respect Enter send shortcut on touch devices#66

Merged
chenyme merged 3 commits into
DEEIX-AI:devfrom
acloudpeng:fix/send-shortcut-touch-input
May 29, 2026
Merged

fix: respect Enter send shortcut on touch devices#66
chenyme merged 3 commits into
DEEIX-AI:devfrom
acloudpeng:fix/send-shortcut-touch-input

Conversation

@acloudpeng

Copy link
Copy Markdown
Contributor

变更内容

  • 修复支持触摸输入或混合输入设备上,聊天发送快捷键设置不生效的问题
  • 移除原先对触摸输入设备的特殊覆盖逻辑,避免在 chat.send_on_enter 设置为 enter 时仍然强制 Enter 换行

验证

  • 已使用 Docker 全量部署在本地测试
  • 当发送快捷键设置为 Enter 时,确认按 Enter 会发送消息
  • 当发送快捷键设置为 Ctrl/Command + Enter 时,确认按 Enter 会换行,组合键会发送消息

@chenyme

chenyme commented May 28, 2026

Copy link
Copy Markdown
Contributor
  • 代码整洁性保证:

shouldUseMultilineEnterForTouchInput() 已经没有调用方了,建议从 frontend/shared/lib/platform-shortcuts.ts 删除相关逻辑,避免留下死代码。

@acloudpeng

Copy link
Copy Markdown
Contributor Author

感谢指出,已删除未使用的 shouldUseMultilineEnterForTouchInput() 辅助函数,并确认当前代码中没有残留引用。

@chenyme
chenyme self-requested a review May 29, 2026 17:30
@chenyme
chenyme merged commit f262686 into DEEIX-AI:dev May 29, 2026
2 checks passed
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