Closed Eliot00 closed 10 months ago
写了个简单的InputController调试了下,发现有些app无法拿到bundleIdentifier了,看来问题不是出在rime上
override func inputText(_ string: String!, client sender: Any!) -> Bool { NSLog(string) // get client to insert guard let client = sender as? IMKTextInput else { return false } let iden = client.bundleIdentifier() ?? "none" NSLog(iden) client.insertText(string, replacementRange: NSRange(location: NSNotFound, length: NSNotFound)) return true }
写了个简单的InputController调试了下,发现有些app无法拿到bundleIdentifier了,看来问题不是出在rime上