SessionCtl // +isCandidateContextMenuEnabled().
This commit is contained in:
parent
58bcea2507
commit
dd964b3c40
|
@ -16,6 +16,7 @@ public protocol CtlCandidateDelegate {
|
||||||
var selectionKeys: String { get }
|
var selectionKeys: String { get }
|
||||||
var isVerticalTyping: Bool { get }
|
var isVerticalTyping: Bool { get }
|
||||||
var isCandidateState: Bool { get }
|
var isCandidateState: Bool { get }
|
||||||
|
var isCandidateContextMenuEnabled: Bool { get }
|
||||||
var showReverseLookupResult: Bool { get }
|
var showReverseLookupResult: Bool { get }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ extension SessionCtl: InputHandlerDelegate {
|
||||||
|
|
||||||
extension SessionCtl: CtlCandidateDelegate {
|
extension SessionCtl: CtlCandidateDelegate {
|
||||||
public var isCandidateState: Bool { state.isCandidateContainer }
|
public var isCandidateState: Bool { state.isCandidateContainer }
|
||||||
|
public var isCandidateContextMenuEnabled: Bool { state.type == .ofCandidates }
|
||||||
public var showReverseLookupResult: Bool {
|
public var showReverseLookupResult: Bool {
|
||||||
!isVerticalTyping && PrefMgr.shared.showReverseLookupInCandidateUI
|
!isVerticalTyping && PrefMgr.shared.showReverseLookupInCandidateUI
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue