Add keyboard shortcut to suppress prompt while deleting files/dirs (#9452)

Completes #7228.
Adds back Backspace as the main delete key binding and makes Linux
bindings consistent with macOS

Release Notes:
- ⌘-Delete/⌘-Backspace will now suppress deletion confirmation prompts
in project panel
([#7228](https://github.com/zed-industries/zed/issues/7228)).
This commit is contained in:
Mayfield
2024-03-18 11:43:43 -07:00
committed by GitHub
parent e22d31b52d
commit 7c0a0e21ab
5 changed files with 52 additions and 20 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ impl<T: 'static> Model<T> {
///
/// The update function receives a context appropriate for its environment.
/// When updating in an `AppContext`, it receives a `ModelContext`.
/// When updating an a `WindowContext`, it receives a `ViewContext`.
/// When updating in a `WindowContext`, it receives a `ViewContext`.
pub fn update<C, R>(
&self,
cx: &mut C,