Fixed GUI textbox moving cursor on layout

This commit is contained in:
Yousef Khadadeh 2026-04-04 22:28:33 +03:00
parent 550c31f088
commit 7286f01035
4 changed files with 11 additions and 7 deletions

View file

@ -52,6 +52,7 @@ template <typename T> class TextBox : public Element {
bool update_data();
bool is_selected() const;
bool isHeld = false;
std::optional<TextEditData> edit;
std::optional<T> oldData;