textbox.caret property

This commit is contained in:
MihailRis
2024-05-17 12:18:39 +03:00
parent 5834233162
commit 3992ca8291
5 changed files with 45 additions and 13 deletions
+2
View File
@@ -13,6 +13,7 @@ function on_history_up()
return
end
document.prompt.text = history[history_pointer]
document.prompt.caret = -1
history_pointer = history_pointer - 1
end
@@ -22,6 +23,7 @@ function on_history_down()
end
history_pointer = history_pointer + 1
document.prompt.text = history[history_pointer + 1]
document.prompt.caret = -1
end
function add_to_history(text)