Skip to content

Commit

Permalink
Added shortcut to rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubonnek committed Mar 27, 2018
1 parent 928cdb4 commit f0db7fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,8 @@ void FileSystemDock::_files_gui_input(Ref<InputEvent> p_event) {
_file_option(FILE_COPY_PATH);
} else if (ED_IS_SHORTCUT("filesystem_dock/delete", p_event)) {
_file_option(FILE_REMOVE);
} else if (ED_IS_SHORTCUT("filesystem_dock/rename", p_event)) {
_file_option(FILE_RENAME);
}
}
}
Expand Down Expand Up @@ -1770,6 +1772,7 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) {
ED_SHORTCUT("filesystem_dock/copy_path", TTR("Copy Path"), KEY_MASK_CMD | KEY_C);
ED_SHORTCUT("filesystem_dock/duplicate", TTR("Duplicate..."), KEY_MASK_CMD | KEY_D);
ED_SHORTCUT("filesystem_dock/delete", TTR("Delete"), KEY_DELETE);
ED_SHORTCUT("filesystem_dock/rename", TTR("Rename"));

HBoxContainer *toolbar_hbc = memnew(HBoxContainer);
add_child(toolbar_hbc);
Expand Down

0 comments on commit f0db7fc

Please sign in to comment.