Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
enable focusable process info panel
Browse files Browse the repository at this point in the history
  • Loading branch information
skanehira committed Oct 21, 2019
1 parent e0dfc73 commit 31a3aad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func New() *Gui {
Panels: []tview.Primitive{
filterInput,
processManager,
processInfoView,
processEnvView,
processTreeView,
},
Expand Down
8 changes: 8 additions & 0 deletions gui/keybinds.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,17 @@ func (g *Gui) ProcessEnvViewKeybinds() {
})
}

func (g *Gui) ProcessInfoViewKeybinds() {
g.ProcessInfoView.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
g.GrobalKeybind(event)
return event
})
}

func (g *Gui) SetKeybinds() {
g.FilterInputKeybinds()
g.ProcessManagerKeybinds()
g.ProcessTreeViewKeybinds()
g.ProcessInfoViewKeybinds()
g.ProcessEnvViewKeybinds()
}

0 comments on commit 31a3aad

Please sign in to comment.