mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
textbox.caret property
This commit is contained in:
parent
5834233162
commit
3992ca8291
5 changed files with 45 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue