diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 674c196f0e..de4d371bb4 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -752,6 +752,8 @@ "escape": "git_panel::ToggleFocus", "ctrl-enter": "git::Commit", "alt-enter": "menu::SecondaryConfirm", + "delete": "git::RestoreFile", + "shift-delete": "git::RestoreFile", "backspace": "git::RestoreFile" } }, diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 4c626ead6d..5a4ce720f3 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -791,6 +791,8 @@ "shift-tab": "git_panel::FocusEditor", "escape": "git_panel::ToggleFocus", "cmd-enter": "git::Commit", + "delete": "git::RestoreFile", + "cmd-backspace": "git::RestoreFile", "backspace": "git::RestoreFile" } },