Commit 447f94b
fix: iOS Safari Chinese punctuation input not working
Fix input handling for Chinese punctuation (,。!?) and spaces on iOS Safari.
The issue occurs because:
1. iOS Safari fires keydown (setting _keyDownSeen=true)
2. Then fires input event with ev.composed=true
3. But NO composition events are triggered for punctuation
The old condition `(!ev.composed || !this._keyDownSeen)` would reject these
inputs because both conditions are true.
The fix changes the condition to check `!this._compositionHelper.isComposing`
instead. This correctly:
- Accepts punctuation input (not composing, so we handle it)
- Rejects input during actual composition (CompositionHelper handles it)
- Prevents emoji duplication (emoji goes through composition flow)
Fixes #3070, #4486
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2521bab commit 447f94b
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1248 | 1251 | | |
1249 | 1252 | | |
1250 | 1253 | | |
| |||
0 commit comments