KeyHandler // Simplify handling for associated phrases.
This commit is contained in:
parent
fdd8b20be6
commit
6ad6c73bc3
|
@ -302,12 +302,8 @@ extension KeyHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
var index: Int = NSNotFound
|
var index: Int = NSNotFound
|
||||||
var match: String!
|
let match: String =
|
||||||
if state is InputState.AssociatedPhrases {
|
(state is InputState.AssociatedPhrases) ? input.inputTextIgnoringModifiers ?? "" : inputText ?? ""
|
||||||
match = input.inputTextIgnoringModifiers
|
|
||||||
} else {
|
|
||||||
match = inputText
|
|
||||||
}
|
|
||||||
|
|
||||||
var j = 0
|
var j = 0
|
||||||
while j < ctlCandidateCurrent.keyLabels.count {
|
while j < ctlCandidateCurrent.keyLabels.count {
|
||||||
|
|
Loading…
Reference in New Issue