Commit b3d4d01
authored
Fabric : Implements selectable prop for <Text> (#15473)
* visual studio 2026 strict check fix
* Implement text selection with drag highlight for selectable prop
* implemented copy to clipboard
* CTRL + A to select all text
* Double-click on a word in selectable text selects the word
* right click on selected text provides context menu
* fixes unselect after CTRL + A selection
* implements I-beam cursor for selectable text
* default selection color cleanup
* yarn lint:fix and format
* Change files
* nit
* nit
* review comments ( double click , theme ( use of system api) , Capture pointer )
* removed weak_ref of ComponentView rather take ReactTaggedView
* yarn format
* review comments
* nit
* review comments : nit
* invalid/null tag returns -1 for ReactTaggedView
* support CJK selcetion using icu.h
* update Desktop.DLL with icu.lib
* CJK word boundary using dictionary
* review comments
* yarn lint:fix and format
* Add IcuUtils.cpp to project files for CJK support
* remove ICUUtils from Microsoft.ReactNative.vcxproj already added to shared1 parent 1071c00 commit b3d4d01
File tree
16 files changed
+827
-5
lines changed- change
- packages/playground/Samples
- vnext
- Desktop.DLL
- Microsoft.ReactNative
- Fabric
- Composition
- platform/react/renderer/textlayoutmanager
- Utils
16 files changed
+827
-5
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
64 | 81 | | |
65 | 82 | | |
66 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
67 | 116 | | |
68 | 117 | | |
69 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
1095 | 1096 | | |
1096 | 1097 | | |
1097 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1098 | 1106 | | |
1099 | 1107 | | |
1100 | 1108 | | |
| |||
0 commit comments