Skip to content

Commit 08ea60b

Browse files
committed
快打模式下如果沒有候選字時,可以直接輸出英數 #23
1 parent 6d15254 commit 08ea60b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Packages/ilimi_MainAssembly/Sources/ilimiMainAssembly/IlimiInputController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,12 @@ extension IlimiInputController {
247247

248248
func commitText(client sender: Any!, text: String) {
249249
// 在快打模式下如果不是最簡碼不會輸出,並且會要求使用重新最簡碼重打
250-
if !isASCIIMode, InputContext.shared.isSpMode, !SpModeManager.checkInputIsSp(text, assistSelectChar.chr) {
250+
// 快打模式下如果沒有候選字時,可以直接輸出英數
251+
if !isASCIIMode, InputContext.shared.isSpMode, !InputContext.shared.candidates.isEmpty,
252+
!SpModeManager.checkInputIsSp(
253+
text,
254+
assistSelectChar.chr
255+
) {
251256
cleanComposition()
252257
let res = SpModeManager.getSpKeyOfChar(text).joined(separator: "")
253258
NotifierController.notify(message: "\(text)的簡碼為\(res)", stay: true)

0 commit comments

Comments
 (0)