Skip to content

Commit

Permalink
fix: 修复中文和数字之间不会插入空格的问题 #129
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyyb committed Apr 16, 2024
1 parent 7ba5189 commit a1a4bd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Fire/FireInputController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ class FireInputController: IMKInputController {
return true
}
_lastInputIsNumber = true
if Utils.shared.shouldConcatWithWhitespace(_lastInputText, string) {
// 中文后输入了数字,先插入一个空格
insertText(" ")
}
_lastInputText = event.characters!
}
return nil
}
Expand Down

0 comments on commit a1a4bd4

Please sign in to comment.