diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-03 22:28:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-03 22:28:54 +0200 |
| commit | 774a9fde84a0282c40da1dd891b613ed200ff9a8 (patch) | |
| tree | 0bc0d7f9080da4692e6f055bc6afb8c53f090529 /scene/gui/line_edit.cpp | |
| parent | 85a338295859bd14817df675f9ce045f39658920 (diff) | |
| parent | 8851e16f7508d27965bfb28647c982b7e3a8af81 (diff) | |
| download | redot-engine-774a9fde84a0282c40da1dd891b613ed200ff9a8.tar.gz | |
Merge pull request #26848 from ptrojahn/utf8navigation
Support UTF-8 in TextEdit and LineEdit navigation
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index cc966efee9..58bdde1ffd 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -44,7 +44,7 @@ static bool _is_text_char(CharType c) { - return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'; + return !is_symbol(c); } void LineEdit::_gui_input(Ref<InputEvent> p_event) { |
