You've already forked godot
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:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user