Remove unsupported key binding on users view (#2134)

mine
Jayson Wang 2023-06-18 22:02:52 +08:00 committed by GitHub
parent 957f70f775
commit dc06addd27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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),