Repository navigation
Commit 90746b8
committed
fix(wasm): Keep the TextBox in sync with Android soft keyboard input
Port of unoplatform#24502 (closes unoplatform#22230) to servicing/6.8.
Differences from the master version:
- Master's TextBoxCore.IME.cs changes are applied to TextBox.IME.skia.cs
(6.8 has no TextBoxCore): the same ResetComposition /
RaiseTextCompositionEnded helpers, StartIndex and TextChangePending
handling and pending-flag resets, raising the TextBox's own events
instead of going through the host.
- ImeCompositionEventArgs.StartIndex / TextChangePending are added to
ImeCompositionEventArgs.skia.cs (master: ImeCompositionEventArgs.cs).
- IsReadOnly is forwarded to the view from TextBox.skia.cs's
OnIsReadonlyChangedPartial rather than from TextBoxCore.
- BrowserInvisibleTextBoxViewExtension uses the TextBox directly
(master uses the ITextBoxHost core); the TypeScript, the IME extension
and the WASM-only Given_TextBox.BrowserSoftKeyboard tests are verbatim.1 parent 6e25166 commit 90746b8
7 files changed
Lines changed: 1545 additions & 130 deletions
File tree
- src
- Uno.UI.Runtime.Skia.WebAssembly.Browser
- UI/Xaml/Controls/TextBox
- ts/Runtime
- Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls
- Uno.UI/UI/Xaml/Controls/TextBox
- Extensions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
37 | 54 | | |
38 | 55 | | |
39 | 56 | | |
| |||
114 | 131 | | |
115 | 132 | | |
116 | 133 | | |
117 | | - | |
| 134 | + | |
| 135 | + | |
118 | 136 | | |
119 | 137 | | |
120 | 138 | | |
| |||
244 | 262 | | |
245 | 263 | | |
246 | 264 | | |
| 265 | + | |
247 | 266 | | |
248 | 267 | | |
249 | 268 | | |
250 | 269 | | |
251 | | - | |
252 | | - | |
| 270 | + | |
| 271 | + | |
253 | 272 | | |
254 | 273 | | |
255 | 274 | | |
| |||
279 | 298 | | |
280 | 299 | | |
281 | 300 | | |
282 | | - | |
| 301 | + | |
283 | 302 | | |
284 | 303 | | |
285 | 304 | | |
| |||
302 | 321 | | |
303 | 322 | | |
304 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
305 | 327 | | |
306 | 328 | | |
307 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
| 56 | + | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
61 | 70 | | |
62 | | - | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
0 commit comments