KeyHandler // +respectCursorPushing to fixNode().
This commit is contained in:
parent
46a58e9e46
commit
2967109116
|
@ -160,7 +160,7 @@ class KeyHandler {
|
||||||
return arrResult
|
return arrResult
|
||||||
}
|
}
|
||||||
|
|
||||||
func fixNode(value: String) {
|
func fixNode(value: String, respectCursorPushing: Bool = true) {
|
||||||
let cursorIndex: Int = actualCandidateCursorIndex
|
let cursorIndex: Int = actualCandidateCursorIndex
|
||||||
let selectedNode: Megrez.NodeAnchor = _builder.grid.fixNodeSelectedCandidate(
|
let selectedNode: Megrez.NodeAnchor = _builder.grid.fixNodeSelectedCandidate(
|
||||||
location: cursorIndex, value: value
|
location: cursorIndex, value: value
|
||||||
|
@ -194,7 +194,7 @@ class KeyHandler {
|
||||||
}
|
}
|
||||||
walk()
|
walk()
|
||||||
|
|
||||||
if mgrPrefs.moveCursorAfterSelectingCandidate {
|
if mgrPrefs.moveCursorAfterSelectingCandidate, respectCursorPushing {
|
||||||
var nextPosition = 0
|
var nextPosition = 0
|
||||||
for node in _walkedNodes {
|
for node in _walkedNodes {
|
||||||
if nextPosition >= cursorIndex { break }
|
if nextPosition >= cursorIndex { break }
|
||||||
|
|
Loading…
Reference in New Issue