Repository navigation
Commit 10fc677
Rich text: restore contenteditable on pointercancel (#82598)
* Rich text: restore contenteditable on pointercancel
`preventFocusCapture` sets `contenteditable` to `false` on `pointerdown`
and restores it on `pointerup`. On touch devices a touch that turns into
a scroll fires `pointercancel` instead of `pointerup`, so the attribute
is never restored and the text block stays uneditable.
Listen for `pointercancel` as well, using the same handler.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017iXbFmYveRx2xsN3G6WfML
* Add a CHANGELOG entry
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017iXbFmYveRx2xsN3G6WfML
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: dcalhoun <dpcalhoun@git.wordpress.org>1 parent aa5b9a2 commit 10fc677
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
0 commit comments