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
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
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);