You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Merge pull request #58740 from timothyqiu/text-editor-separator
Remove extra separator when `TextEdit` is read only and unselectable
This commit is contained in:
@@ -5664,8 +5664,10 @@ void TextEdit::_generate_context_menu() {
|
|||||||
if (editable) {
|
if (editable) {
|
||||||
menu->add_item(RTR("Paste"), MENU_PASTE, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_paste") : Key::NONE);
|
menu->add_item(RTR("Paste"), MENU_PASTE, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_paste") : Key::NONE);
|
||||||
}
|
}
|
||||||
|
if (selecting_enabled || editable) {
|
||||||
menu->add_separator();
|
menu->add_separator();
|
||||||
if (is_selecting_enabled()) {
|
}
|
||||||
|
if (selecting_enabled) {
|
||||||
menu->add_item(RTR("Select All"), MENU_SELECT_ALL, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_text_select_all") : Key::NONE);
|
menu->add_item(RTR("Select All"), MENU_SELECT_ALL, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_text_select_all") : Key::NONE);
|
||||||
}
|
}
|
||||||
if (editable) {
|
if (editable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user