KeyHandler // Remove redundant code in fixNode().
This commit is contained in:
parent
3b734c2cda
commit
9650a0c35e
|
@ -167,7 +167,6 @@ class KeyHandler {
|
||||||
/// - respectCursorPushing: 若該選項為 true,則會在選字之後始終將游標推送至選字厚的節錨的前方。
|
/// - respectCursorPushing: 若該選項為 true,則會在選字之後始終將游標推送至選字厚的節錨的前方。
|
||||||
func fixNode(value: String, respectCursorPushing: Bool = true) {
|
func fixNode(value: String, respectCursorPushing: Bool = true) {
|
||||||
let cursorIndex = min(actualCandidateCursorIndex + (mgrPrefs.useRearCursorMode ? 1 : 0), compositorLength)
|
let cursorIndex = min(actualCandidateCursorIndex + (mgrPrefs.useRearCursorMode ? 1 : 0), compositorLength)
|
||||||
compositor.grid.fixNodeSelectedCandidate(location: cursorIndex, value: value)
|
|
||||||
// 開始讓半衰模組觀察目前的狀況。
|
// 開始讓半衰模組觀察目前的狀況。
|
||||||
let selectedNode: Megrez.NodeAnchor = compositor.grid.fixNodeSelectedCandidate(
|
let selectedNode: Megrez.NodeAnchor = compositor.grid.fixNodeSelectedCandidate(
|
||||||
location: cursorIndex, value: value
|
location: cursorIndex, value: value
|
||||||
|
|
Loading…
Reference in New Issue