ctlIME // +isAssociatedPhrasesMode for ctlCandidateDelegate.
This commit is contained in:
parent
1a52ddfaa2
commit
1fbf7f0c72
|
@ -50,6 +50,8 @@ extension ctlInputMethod: KeyHandlerDelegate {
|
|||
// MARK: - Candidate Controller Delegate
|
||||
|
||||
extension ctlInputMethod: ctlCandidateDelegate {
|
||||
var isAssociatedPhrasesMode: Bool { state is InputState.AssociatedPhrases }
|
||||
|
||||
func handleDelegateEvent(_ event: NSEvent!) -> Bool {
|
||||
// 用 Shift 開關半形英數模式,僅對 macOS 10.15 及之後的 macOS 有效。
|
||||
if #available(macOS 10.15, *) {
|
||||
|
|
|
@ -27,6 +27,7 @@ public class CandidateKeyLabel: NSObject {
|
|||
}
|
||||
|
||||
public protocol ctlCandidateDelegate: AnyObject {
|
||||
var isAssociatedPhrasesMode: Bool { get }
|
||||
func handleDelegateEvent(_ event: NSEvent!) -> Bool
|
||||
func candidateCountForController(_ controller: ctlCandidateProtocol) -> Int
|
||||
func candidatesForController(_ controller: ctlCandidateProtocol) -> [(String, String)]
|
||||
|
|
Loading…
Reference in New Issue