@@ -2544,14 +2544,6 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
2544
2544
}
2545
2545
} break ;
2546
2546
2547
- case FILE_COPY_NAME: {
2548
- if (!p_selected.is_empty ()) {
2549
- const String &fpath = p_selected[0 ];
2550
- const String file_name = fpath.get_file ();
2551
- DisplayServer::get_singleton ()->clipboard_set (file_name);
2552
- }
2553
- } break ;
2554
-
2555
2547
case FILE_COPY_UID: {
2556
2548
if (!p_selected.is_empty ()) {
2557
2549
ResourceUID::ID uid = ResourceLoader::get_resource_uid (p_selected[0 ]);
@@ -3290,7 +3282,6 @@ void FileSystemDock::_file_and_folders_fill_popup(PopupMenu *p_popup, const Vect
3290
3282
if (p_paths.size () == 1 ) {
3291
3283
p_popup->add_icon_shortcut (get_editor_theme_icon (SNAME (" ActionCopy" )), ED_GET_SHORTCUT (" filesystem_dock/copy_path" ), FILE_COPY_PATH);
3292
3284
p_popup->add_shortcut (ED_GET_SHORTCUT (" filesystem_dock/copy_absolute_path" ), FILE_COPY_ABSOLUTE_PATH);
3293
- p_popup->add_shortcut (ED_GET_SHORTCUT (" filesystem_dock/copy_name" ), FILE_COPY_NAME);
3294
3285
if (ResourceLoader::get_resource_uid (p_paths[0 ]) != ResourceUID::INVALID_ID) {
3295
3286
p_popup->add_icon_shortcut (get_editor_theme_icon (SNAME (" Instance" )), ED_GET_SHORTCUT (" filesystem_dock/copy_uid" ), FILE_COPY_UID);
3296
3287
}
@@ -3648,8 +3639,6 @@ void FileSystemDock::_tree_gui_input(Ref<InputEvent> p_event) {
3648
3639
_tree_rmb_option (FILE_COPY_PATH);
3649
3640
} else if (ED_IS_SHORTCUT (" filesystem_dock/copy_absolute_path" , p_event)) {
3650
3641
_tree_rmb_option (FILE_COPY_ABSOLUTE_PATH);
3651
- } else if (ED_IS_SHORTCUT (" filesystem_dock/copy_name" , p_event)) {
3652
- _tree_rmb_option (FILE_COPY_NAME);
3653
3642
} else if (ED_IS_SHORTCUT (" filesystem_dock/copy_uid" , p_event)) {
3654
3643
_tree_rmb_option (FILE_COPY_UID);
3655
3644
} else if (ED_IS_SHORTCUT (" filesystem_dock/delete" , p_event)) {
@@ -3733,8 +3722,6 @@ void FileSystemDock::_file_list_gui_input(Ref<InputEvent> p_event) {
3733
3722
_file_list_rmb_option (FILE_COPY_PATH);
3734
3723
} else if (ED_IS_SHORTCUT (" filesystem_dock/copy_absolute_path" , p_event)) {
3735
3724
_file_list_rmb_option (FILE_COPY_ABSOLUTE_PATH);
3736
- } else if (ED_IS_SHORTCUT (" filesystem_dock/copy_name" , p_event)) {
3737
- _tree_rmb_option (FILE_COPY_NAME);
3738
3725
} else if (ED_IS_SHORTCUT (" filesystem_dock/delete" , p_event)) {
3739
3726
_file_list_rmb_option (FILE_REMOVE);
3740
3727
} else if (ED_IS_SHORTCUT (" filesystem_dock/rename" , p_event)) {
@@ -4055,7 +4042,6 @@ FileSystemDock::FileSystemDock() {
4055
4042
// `KeyModifierMask::CMD_OR_CTRL | Key::C` conflicts with other editor shortcuts.
4056
4043
ED_SHORTCUT (" filesystem_dock/copy_path" , TTRC (" Copy Path" ), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::C);
4057
4044
ED_SHORTCUT (" filesystem_dock/copy_absolute_path" , TTRC (" Copy Absolute Path" ), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::ALT | Key::C);
4058
- ED_SHORTCUT (" filesystem_dock/copy_name" , TTR (" Copy Name" ));
4059
4045
ED_SHORTCUT (" filesystem_dock/copy_uid" , TTRC (" Copy UID" ), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::ALT | KeyModifierMask::SHIFT | Key::C);
4060
4046
ED_SHORTCUT (" filesystem_dock/duplicate" , TTRC (" Duplicate..." ), KeyModifierMask::CMD_OR_CTRL | Key::D);
4061
4047
ED_SHORTCUT (" filesystem_dock/delete" , TTRC (" Delete" ), Key::KEY_DELETE);
0 commit comments