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

This commit is contained in:
bruvzg
2022-05-13 09:33:24 +03:00
parent eb80a9f325
commit 081b6b8053
5 changed files with 93 additions and 0 deletions
+5
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);