rime / squirrel

【鼠鬚管】Rime for macOS
https://rime.im
GNU General Public License v3.0
4.6k stars 412 forks source link

MacOS 14下ascii mode和vim mode失效 #814

Closed Eliot00 closed 10 months ago

Eliot00 commented 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
    }