project panel: Allow confirming prompt with keyboard (#11346)

Bennet Bo Fenner created

The ability to confirm the file deletion prompt by pressing "Enter" was
broken in #11015

Release Notes:

- Restored the ability to confirm a prompt by pressing "Enter" when
deleting/trashing files

Change summary

crates/project_panel/src/project_panel.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/project_panel/src/project_panel.rs 🔗

@@ -904,7 +904,7 @@ impl ProjectPanel {
             let operation = if trash { "Trash" } else { "Delete" };
             let answer = (!skip_prompt).then(|| {
                 cx.prompt(
-                    PromptLevel::Destructive,
+                    PromptLevel::Info,
                     &format!("{operation:?} {file_name:?}?",),
                     None,
                     &["Delete", "Cancel"],