Add ALT NUM+ {hex code} character input support for LineEdit, TextEdit and CodeEdit.
This commit is contained in:
parent
eb80a9f325
commit
081b6b8053
5 changed files with 93 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue