Skip to content

Commit

Permalink
fix: 考虑到会增加输入负担,中文模式下输入大写字母时,不再直接上屏处理
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyyb committed Nov 9, 2023
1 parent a46a3d7 commit 0b51393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fire/FireInputController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class FireInputController: IMKInputController {
// 获取输入的字符
let string = event.characters!

guard let reg = try? NSRegularExpression(pattern: "^[a-z]+$") else {
guard let reg = try? NSRegularExpression(pattern: "^[a-zA-Z]+$") else {
return nil
}
let match = reg.firstMatch(
Expand Down

0 comments on commit 0b51393

Please sign in to comment.