Skip to content

Commit

Permalink
修Bug:记录面板中,光标无法移到第1个字符前面 (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Dec 12, 2023
1 parent d3aa7ee commit 3983d94
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ Item {
}
// 将光标移到指定位置并激活焦点。
function focus(pos=-1) {
if(pos && pos >= 0)
if(pos >= 0) {
textMain_.cursorPosition = pos
}
textMain_.forceActiveFocus() // 获取焦点
}
function toUpdateSelect() {
Expand Down

0 comments on commit 3983d94

Please sign in to comment.