| 128 | } |
| 129 | |
| 130 | void TextEditor::enable_editor(Control *p_shortcut_context) { |
| 131 | if (editor_enabled) { |
| 132 | return; |
| 133 | } |
| 134 | |
| 135 | editor_enabled = true; |
| 136 | |
| 137 | _load_theme_settings(); |
| 138 | |
| 139 | _validate_script(); |
| 140 | |
| 141 | if (p_shortcut_context) { |
| 142 | for (int i = 0; i < edit_hb->get_child_count(); ++i) { |
| 143 | Control *c = cast_to<Control>(edit_hb->get_child(i)); |
| 144 | if (c) { |
| 145 | c->set_shortcut_context(p_shortcut_context); |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void TextEditor::add_callback(const String &p_function, const PackedStringArray &p_args) { |
| 152 | } |
no test coverage detected