Skip to content

Commit 727d6ff

Browse files
authored
[0.74] TextInput TSF support (#15364)
* Add TSF support to TextInput (#15363) * Add TSF support to TextInput * Change files * fix change file
1 parent 02eb5ca commit 727d6ff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Add TSF support to TextInput",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,9 @@ WindowsTextInputComponentView::createVisual() noexcept {
15921592
LRESULT res;
15931593
winrt::check_hresult(m_textServices->TxSendMessage(EM_SETTEXTMODE, TM_PLAINTEXT, 0, &res));
15941594

1595+
// Enable TSF support
1596+
winrt::check_hresult(m_textServices->TxSendMessage(EM_SETEDITSTYLE, SES_USECTF, SES_USECTF, nullptr));
1597+
15951598
m_caretVisual = m_compContext.CreateCaretVisual();
15961599
visual.InsertAt(m_caretVisual.InnerVisual(), 0);
15971600
m_caretVisual.IsVisible(false);

0 commit comments

Comments
 (0)