mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-12 05:27:07 +00:00
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:
parent
9348e6f7fb
commit
36055505cd
1 changed files with 1 additions and 1 deletions
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue