You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
LineEdit add member keep_editing_on_text_submit.
Allow users to exit edit mode when Enter is pressed.
This commit is contained in:
@@ -87,6 +87,7 @@ private:
|
||||
HorizontalAlignment alignment = HORIZONTAL_ALIGNMENT_LEFT;
|
||||
|
||||
bool editing = false;
|
||||
bool keep_editing_on_text_submit = false;
|
||||
bool editable = false;
|
||||
bool pass = false;
|
||||
bool text_changed_dirty = false;
|
||||
@@ -266,6 +267,8 @@ public:
|
||||
void edit();
|
||||
void unedit();
|
||||
bool is_editing() const;
|
||||
void set_keep_editing_on_text_submit(bool p_enabled);
|
||||
bool is_editing_kept_on_text_submit() const;
|
||||
|
||||
bool has_ime_text() const;
|
||||
void cancel_ime();
|
||||
|
||||
Reference in New Issue
Block a user