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