1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and CodeEdit.

This commit is contained in:
bruvzg
2021-11-29 16:24:02 +02:00
parent eb80a9f325
commit 081b6b8053
5 changed files with 93 additions and 0 deletions

View File

@@ -357,6 +357,11 @@ void CodeEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
}
Ref<InputEventKey> k = p_gui_input;
if (TextEdit::alt_input(p_gui_input)) {
accept_event();
return;
}
bool update_code_completion = false;
if (!k.is_valid()) {
TextEdit::gui_input(p_gui_input);