Skip to content

Commit

Permalink
Remove unsupported key binding on users view (derailed#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjiec authored Jun 18, 2023
1 parent 0e0b30f commit 0352c98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/view/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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),
Expand Down

0 comments on commit 0352c98

Please sign in to comment.