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

Function sectionForShortcut

internal/tui/nav.go:44–54  ·  view source on GitHub ↗

sectionForShortcut returns the section for a Shift+letter shortcut, or -1.

(key string)

Source from the content-addressed store, hash-verified

42 {"C", "Calendar"},
43 {"J", "Journal"},
44}
45
46// sectionForShortcut returns the section for a Shift+letter shortcut, or -1.
47func sectionForShortcut(key string) section {
48 switch key {
49 case "M":
50 return sectionMail
51 case "O":
52 return sectionContacts
53 case "C":
54 return sectionCalendar
55 case "J":
56 return sectionJournal
57 }

Callers 1

handleKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected