MCPcopy Create free account
hub / github.com/cli/cli / keyPress

Function keyPress

pkg/cmd/extension/browse/model_test.go:876–878  ·  view source on GitHub ↗
(r rune)

Source from the content-addressed store, hash-verified

874}
875
876func keyPress(r rune) tea.KeyPressMsg {
877 return tea.KeyPressMsg{Code: r, Text: string(r)}
878}
879
880func specialKey(code rune, mod tea.KeyMod) tea.KeyPressMsg {
881 return tea.KeyPressMsg{Code: code, Mod: mod}

Calls

no outgoing calls

Tested by

no test coverage detected