summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/ui/keyhandlers.go4
-rw-r--r--internal/ui/table.go7
-rwxr-xr-xtasksamuraibin6024296 -> 6047846 bytes
3 files changed, 8 insertions, 3 deletions
diff --git a/internal/ui/keyhandlers.go b/internal/ui/keyhandlers.go
index 428f28e..419bc14 100644
--- a/internal/ui/keyhandlers.go
+++ b/internal/ui/keyhandlers.go
@@ -121,7 +121,9 @@ func (m *Model) handleToggleHelp() (tea.Model, tea.Cmd) {
height = 20 // Default height
}
m.helpViewport = viewport.New(width, height)
- m.helpViewport.SetContent("") // Content will be set in renderHelpScreen
+ // Set the content immediately
+ content := m.buildHelpContent()
+ m.helpViewport.SetContent(content)
return m, nil
}
diff --git a/internal/ui/table.go b/internal/ui/table.go
index a0a82c5..a430dcf 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -420,9 +420,12 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m.handleNormalMode(msg)
}
- // Default case - pass through to table
+ // Default case - pass through to appropriate component
if m.showHelp {
- return m, nil
+ // Update help viewport for mouse wheel and other events
+ var cmd tea.Cmd
+ m.helpViewport, cmd = m.helpViewport.Update(msg)
+ return m, cmd
}
var cmd tea.Cmd
diff --git a/tasksamurai b/tasksamurai
index dff17f4..9be8bc6 100755
--- a/tasksamurai
+++ b/tasksamurai
Binary files differ