KeyHandler // +respectCursorPushing to fixNode().

This commit is contained in:
ShikiSuen 2022-05-30 16:43:10 +08:00
parent 46a58e9e46
commit 2967109116
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class KeyHandler {
return arrResult
}
func fixNode(value: String) {
func fixNode(value: String, respectCursorPushing: Bool = true) {
let cursorIndex: Int = actualCandidateCursorIndex
let selectedNode: Megrez.NodeAnchor = _builder.grid.fixNodeSelectedCandidate(
location: cursorIndex, value: value
@ -194,7 +194,7 @@ class KeyHandler {
}
walk()
if mgrPrefs.moveCursorAfterSelectingCandidate {
if mgrPrefs.moveCursorAfterSelectingCandidate, respectCursorPushing {
var nextPosition = 0
for node in _walkedNodes {
if nextPosition >= cursorIndex { break }