KeyHandler // Bind alsoConfirmAssociatedCandidatesByEnter.
This commit is contained in:
parent
2f7e5a23e9
commit
df55f0ddb7
|
@ -78,6 +78,11 @@ extension KeyHandler {
|
|||
// MARK: Enter
|
||||
|
||||
if input.isEnter {
|
||||
if state is InputState.AssociatedPhrases, !mgrPrefs.alsoConfirmAssociatedCandidatesByEnter {
|
||||
clear()
|
||||
stateCallback(InputState.EmptyIgnoringPreviousState())
|
||||
return true
|
||||
}
|
||||
delegate?.keyHandler(
|
||||
self,
|
||||
didSelectCandidateAt: ctlCandidateCurrent.selectedCandidateIndex,
|
||||
|
|
Loading…
Reference in New Issue