mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
more docs, minor refactor
This commit is contained in:
parent
f428a24a16
commit
13f7d3a5d3
6 changed files with 38 additions and 19 deletions
|
|
@ -585,8 +585,8 @@ void TextBox::setOnEditStart(runnable oneditstart) {
|
|||
onEditStart = oneditstart;
|
||||
}
|
||||
|
||||
void TextBox::focus(GUI* gui) {
|
||||
Panel::focus(gui);
|
||||
void TextBox::onFocus(GUI* gui) {
|
||||
Panel::onFocus(gui);
|
||||
if (onEditStart){
|
||||
setCaret(input.size());
|
||||
onEditStart();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue