summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/model.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-24 17:16:17 +0200
committerPaul Buetow <paul@buetow.org>2026-02-24 17:16:17 +0200
commit2ae0b33c9f196634eaa55bd6997d1feae9147385 (patch)
treeea4e0e705c693e44f29924014431186af635b7e5 /internal/tui/dashboard/model.go
parent92114c3b6bfe8a3d28487fcfb34fd291c573500c (diff)
tui: improve dashboard tab navigation and live updates
Diffstat (limited to 'internal/tui/dashboard/model.go')
-rw-r--r--internal/tui/dashboard/model.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go
index 8eb7619..285b715 100644
--- a/internal/tui/dashboard/model.go
+++ b/internal/tui/dashboard/model.go
@@ -86,6 +86,15 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
func (m Model) handleKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
+ switch msg.String() {
+ case "right", "l":
+ m.activeTab = nextTab(m.activeTab)
+ return m, nil
+ case "left", "h":
+ m.activeTab = prevTab(m.activeTab)
+ return m, nil
+ }
+
if m.activeTab == TabSyscalls {
switch msg.String() {
case "down", "j":