summaryrefslogtreecommitdiffstats
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2021-11-29 16:24:02 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-05-13 09:33:24 +0300
commit081b6b80531c1b0e7a41dc9ff2341b45ff865d62 (patch)
tree393fb2811eecefd9e5ed54568776e5efe49bed9a /scene/gui/text_edit.h
parenteb80a9f325199e818eb815644682f2d75b1e8ecc (diff)
downloadredot-engine-081b6b80531c1b0e7a41dc9ff2341b45ff865d62.tar.gz
Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and CodeEdit.
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index a0ae9631f9..194cad72d1 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -247,6 +247,9 @@ private:
bool setting_text = false;
+ bool alt_start = false;
+ uint32_t alt_code = 0;
+
// Text properties.
String ime_text = "";
Point2 ime_selection;
@@ -625,6 +628,7 @@ public:
/* General overrides. */
virtual void unhandled_key_input(const Ref<InputEvent> &p_event) override;
virtual void gui_input(const Ref<InputEvent> &p_gui_input) override;
+ bool alt_input(const Ref<InputEvent> &p_gui_input);
virtual Size2 get_minimum_size() const override;
virtual bool is_text_field() const override;
virtual CursorShape get_cursor_shape(const Point2 &p_pos = Point2i()) const override;