MCPcopy Create free account
hub / github.com/basecamp/hey-cli / handleSubnavKey

Method handleSubnavKey

internal/tui/tui.go:330–338  ·  view source on GitHub ↗
(msg tea.KeyPressMsg)

Source from the content-addressed store, hash-verified

328 return m, nil
329
330 case ctrlCResetMsg:
331 m.ctrlCOnce = false
332 m.updateHelpBindings()
333 return m, nil
334
335 case tea.BackgroundColorMsg:
336 // The terminal knows its background; a theme file that states a mode knows better.
337 if !m.theme.HasMode && m.theme.Dark != msg.IsDark() {
338 theme := m.theme
339 theme.Dark = msg.IsDark()
340 m.restyle(theme)
341 }

Callers 1

handleKeyMethod · 0.95

Calls 2

SubnavLeftMethod · 0.65
SubnavRightMethod · 0.65

Tested by

no test coverage detected