Skip to content

Commit 176056d

Browse files
committed
fix space preedit after ordered list disables input in DingTalk
1 parent 87a93c7 commit 176056d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

macosfrontend/macosfrontend.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ private let appsWithoutDummyPreedit: Set<String> = [
1414
// When writing a new email and caret is at the beginning of To or Cc, Mail calls commitComposition
1515
// if the preedit is any kind of white space.
1616
"com.apple.mail",
17+
// Space (both commit and preedit) is not allowed immediately after ordered list (1.), which is the
18+
// dummy preedit we use for the SwiftUI TextField workaround. While we can change that normal space
19+
// to full-width space, it seems DingTalk doesn't need dummy preedit at all.
20+
"com.alibaba.DingTalkMac",
1721
]
1822

1923
private var controller: IMKInputController? = nil

0 commit comments

Comments
 (0)