| 2947 | } |
| 2948 | |
| 2949 | static ScriptEditorBase *create_editor(const Ref<Resource> &p_resource) { |
| 2950 | if (Object::cast_to<Script>(*p_resource)) { |
| 2951 | return memnew(ScriptTextEditor); |
| 2952 | } |
| 2953 | return nullptr; |
| 2954 | } |
| 2955 | |
| 2956 | void ScriptTextEditor::register_editor() { |
| 2957 | ED_SHORTCUT("script_text_editor/move_up", TTRC("Move Up"), KeyModifierMask::ALT | Key::UP); |