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
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user