From 36055505cdd540cb7d5f9a6145b42cea1265916c Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> Date: Fri, 3 May 2024 15:15:39 +0200 Subject: [PATCH] project panel: Allow confirming prompt with keyboard (#11346) 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 --- crates/project_panel/src/project_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 2c289f6b3d..2bd15192af 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -907,7 +907,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, &[operation, "Cancel"],