Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit eaf6695

Browse files
authored
Update delete binding to use the isExplorerActive filter. (#2162)
1 parent 2196aa0 commit eaf6695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/src/Input/KeyBindings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati
125125
input.bind("<enter>", "menu.select")
126126
input.bind(["<enter>", "<space>"], "select")
127127

128-
input.bind("<delete>", "explorer.delete")
129-
130128
// TODO: Scope 's' to just the local window
131129
input.bind("<c-g>", "sneak.show", () => isNormalMode() && !menu.isMenuOpen())
132130
input.bind(["<esc>", "<c-c>"], "sneak.hide")
@@ -135,7 +133,9 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati
135133

136134
// Explorer
137135
input.bind("d", "explorer.delete.persist", isExplorerActive)
136+
input.bind("<c-delete>", "explorer.delete.persist", isExplorerActive)
138137
input.bind("<c-d>", "explorer.delete", isExplorerActive)
138+
input.bind("<delete>", "explorer.delete", isExplorerActive)
139139
input.bind("y", "explorer.yank", isExplorerActive)
140140
input.bind("p", "explorer.paste", isExplorerActive)
141141
input.bind("u", "explorer.undo", isExplorerActive)

0 commit comments

Comments
 (0)