mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +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. |
||
|---|---|---|
| .. | ||
| acceptance | ||
| fixtures | ||
| integration/components | ||
| unit | ||
| .gitkeep | ||