SessionCtl // Add isCandidateState().
This commit is contained in:
parent
0b2a046885
commit
6f579fafd8
|
@ -15,6 +15,7 @@ public protocol CtlCandidateDelegate {
|
||||||
@discardableResult func reverseLookup(for value: String) -> [String]
|
@discardableResult func reverseLookup(for value: String) -> [String]
|
||||||
var selectionKeys: String { get }
|
var selectionKeys: String { get }
|
||||||
var isVerticalTyping: Bool { get }
|
var isVerticalTyping: Bool { get }
|
||||||
|
var isCandidateState: Bool { get }
|
||||||
var showReverseLookupResult: Bool { get }
|
var showReverseLookupResult: Bool { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,8 @@ extension SessionCtl: InputHandlerDelegate {
|
||||||
// MARK: - Candidate Controller Delegate
|
// MARK: - Candidate Controller Delegate
|
||||||
|
|
||||||
extension SessionCtl: CtlCandidateDelegate {
|
extension SessionCtl: CtlCandidateDelegate {
|
||||||
|
public var isCandidateState: Bool { state.isCandidateContainer }
|
||||||
|
|
||||||
public var showReverseLookupResult: Bool {
|
public var showReverseLookupResult: Bool {
|
||||||
!isVerticalTyping && PrefMgr.shared.showReverseLookupInCandidateUI
|
!isVerticalTyping && PrefMgr.shared.showReverseLookupInCandidateUI
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue