From 0352c984d67afb6ed78c361684771ba5924ea8d7 Mon Sep 17 00:00:00 2001 From: Jayson Wang Date: Sun, 18 Jun 2023 22:02:52 +0800 Subject: [PATCH] Remove unsupported key binding on users view (#2134) --- internal/view/user.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/view/user.go b/internal/view/user.go index aaa06a32ee..ab7d9bea50 100644 --- a/internal/view/user.go +++ b/internal/view/user.go @@ -3,10 +3,11 @@ package view import ( "context" + "github.com/derailed/tcell/v2" + "github.com/derailed/k9s/internal" "github.com/derailed/k9s/internal/client" "github.com/derailed/k9s/internal/ui" - "github.com/derailed/tcell/v2" ) // User presents a user viewer. @@ -24,7 +25,7 @@ func NewUser(gvr client.GVR) ResourceViewer { } func (u *User) bindKeys(aa ui.KeyActions) { - aa.Delete(ui.KeyShiftA, ui.KeyShiftP, tcell.KeyCtrlSpace, ui.KeySpace) + aa.Delete(ui.KeyShiftA, ui.KeyShiftP, tcell.KeyCtrlSpace, ui.KeySpace, tcell.KeyCtrlD, ui.KeyE) aa.Add(ui.KeyActions{ tcell.KeyEnter: ui.NewKeyAction("Rules", u.policyCmd, true), ui.KeyShiftK: ui.NewKeyAction("Sort Kind", u.GetTable().SortColCmd("KIND", true), false),