From 163e6e5eb6a73b8c1cd4665f8817a51b818c9a44 Mon Sep 17 00:00:00 2001 From: CrossR Date: Wed, 2 May 2018 17:13:37 +0100 Subject: [PATCH] Update delete binding to use the `isExplorerActive` filter. --- browser/src/Input/KeyBindings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/src/Input/KeyBindings.ts b/browser/src/Input/KeyBindings.ts index fc8126621f..a41a38451e 100644 --- a/browser/src/Input/KeyBindings.ts +++ b/browser/src/Input/KeyBindings.ts @@ -125,8 +125,6 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati input.bind("", "menu.select") input.bind(["", ""], "select") - input.bind("", "explorer.delete") - // TODO: Scope 's' to just the local window input.bind("", "sneak.show", () => isNormalMode() && !menu.isMenuOpen()) input.bind(["", ""], "sneak.hide") @@ -135,7 +133,9 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati // Explorer input.bind("d", "explorer.delete.persist", isExplorerActive) + input.bind("", "explorer.delete.persist", isExplorerActive) input.bind("", "explorer.delete", isExplorerActive) + input.bind("", "explorer.delete", isExplorerActive) input.bind("y", "explorer.yank", isExplorerActive) input.bind("p", "explorer.paste", isExplorerActive) input.bind("u", "explorer.undo", isExplorerActive)