1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Fix shortcut_keys_enabled in TextEdit

This commit is contained in:
ConteZero
2022-04-08 15:13:32 +02:00
parent bf153b82c7
commit a3d82f5afb

View File

@@ -1944,8 +1944,8 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
return; return;
} }
if (is_shortcut_keys_enabled()) {
// SELECT ALL, SELECT WORD UNDER CARET, CUT, COPY, PASTE. // SELECT ALL, SELECT WORD UNDER CARET, CUT, COPY, PASTE.
if (k->is_action("ui_text_select_all", true)) { if (k->is_action("ui_text_select_all", true)) {
select_all(); select_all();
accept_event(); accept_event();
@@ -1983,6 +1983,7 @@ void TextEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
accept_event(); accept_event();
return; return;
} }
}
// MISC. // MISC.
if (k->is_action("ui_menu", true)) { if (k->is_action("ui_menu", true)) {