Repo // isAssociatedPhrasesMode -> isAssociatedPhrasesState.

This commit is contained in:
ShikiSuen 2022-08-17 18:46:13 +08:00
parent 43609bd899
commit 8fd2f96163
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ extension ctlInputMethod: KeyHandlerDelegate {
// MARK: - Candidate Controller Delegate
extension ctlInputMethod: ctlCandidateDelegate {
var isAssociatedPhrasesMode: Bool { state is InputState.AssociatedPhrases }
var isAssociatedPhrasesState: Bool { state is InputState.AssociatedPhrases }
/// handle() IMK
/// handle()

View File

@ -27,7 +27,7 @@ public class CandidateKeyLabel: NSObject {
}
public protocol ctlCandidateDelegate: AnyObject {
var isAssociatedPhrasesMode: Bool { get }
var isAssociatedPhrasesState: Bool { get }
func sharedEventHandler(_ event: NSEvent!) -> Bool
func candidateCountForController(_ controller: ctlCandidateProtocol) -> Int
func candidatesForController(_ controller: ctlCandidateProtocol) -> [(String, String)]

View File

@ -310,7 +310,7 @@ public class ctlCandidateIMK: IMKCandidates, ctlCandidateProtocol {
}
}
if delegate.isAssociatedPhrasesMode,
if delegate.isAssociatedPhrasesState,
!input.isPageUp, !input.isPageDown, !input.isCursorForward, !input.isCursorBackward,
!input.isCursorClockLeft, !input.isCursorClockRight, !input.isSpace,
!input.isEnter || !mgrPrefs.alsoConfirmAssociatedCandidatesByEnter