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 operation = if trash { "Trash" } else { "Delete" };
|
||||||
let answer = (!skip_prompt).then(|| {
|
let answer = (!skip_prompt).then(|| {
|
||||||
cx.prompt(
|
cx.prompt(
|
||||||
PromptLevel::Destructive,
|
PromptLevel::Info,
|
||||||
&format!("{operation} {file_name:?}?",),
|
&format!("{operation} {file_name:?}?",),
|
||||||
None,
|
None,
|
||||||
&[operation, "Cancel"],
|
&[operation, "Cancel"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue