Merge pull request #74114 from dalexeev/editor-help-enable-context-menu

Enable `RichTextLabel` context menu if selection is enabled
This commit is contained in:
Yuri Sizov 2023-03-16 12:19:05 +01:00 committed by GitHub
commit ac2e82463c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 0 deletions

View file

@ -1179,6 +1179,7 @@ TextShaderEditor::TextShaderEditor() {
warnings_panel->set_h_size_flags(SIZE_EXPAND_FILL);
warnings_panel->set_meta_underline(true);
warnings_panel->set_selection_enabled(true);
warnings_panel->set_context_menu_enabled(true);
warnings_panel->set_focus_mode(FOCUS_CLICK);
warnings_panel->hide();
warnings_panel->connect("meta_clicked", callable_mp(this, &TextShaderEditor::_warning_clicked));