mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-28 01:19:30 +08:00
Follow up to #40167 which added `event.isComposing` on the keydown check. This works fine in Chrome but Safari has some known bugs and quirks for `isComposing` during IME text composition. In Safari, the event order for composition and key events is often out-of-order. This change switches the approach to use `beforeinput` and check for `insertLineBreak` on the textarea. It also adds a `<form>` wrapper around the helper-prompt input, so the browser filters IME confirmation natively on both Chrome and Safari. |
||
|---|---|---|
| .. | ||
| ai-bot-chats-tab-test.js | ||
| ai-bot-conversations-test.js | ||
| ai-bot-sidebar-link-test.js | ||
| post-helper-menu-test.js | ||
| topic-summary-test.js | ||