diff options
| author | Wilson E. Alvarez | 2018-03-26 13:50:48 -0400 |
|---|---|---|
| committer | Wilson E. Alvarez | 2018-03-27 05:55:51 -0400 |
| commit | f0db7fca79297d731fa6abe1e345ce26e1758cd4 (patch) | |
| tree | 6e4befacb87573b7213f656fce793de958a8e63b /editor/filesystem_dock.cpp | |
| parent | 928cdb4f8a72c2de5751cddd3205c2a3c09e6f6d (diff) | |
| download | godot-f0db7fca79297d731fa6abe1e345ce26e1758cd4.tar.gz godot-f0db7fca79297d731fa6abe1e345ce26e1758cd4.tar.zst godot-f0db7fca79297d731fa6abe1e345ce26e1758cd4.zip | |
Diffstat (limited to 'editor/filesystem_dock.cpp')
| -rw-r--r-- | editor/filesystem_dock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 9bfa50148..c56be898e 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -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); } } } @@ -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); |
