MCPcopy Index your code
hub / github.com/git-bug/git-bug / keybindings

Function keybindings

termui/termui.go:144–171  ·  view source on GitHub ↗
(g *gocui.Gui)

Source from the content-addressed store, hash-verified

142}
143
144func keybindings(g *gocui.Gui) error {
145 // Quit
146 if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil {
147 return err
148 }
149
150 if err := ui.bugTable.keybindings(g); err != nil {
151 return err
152 }
153
154 if err := ui.showBug.keybindings(g); err != nil {
155 return err
156 }
157
158 if err := ui.labelSelect.keybindings(g); err != nil {
159 return err
160 }
161
162 if err := ui.msgPopup.keybindings(g); err != nil {
163 return err
164 }
165
166 if err := ui.inputPopup.keybindings(g); err != nil {
167 return err
168 }
169
170 return nil
171}
172
173func quit(g *gocui.Gui, v *gocui.View) error {
174 return gocui.ErrQuit

Callers 1

initGuiFunction · 0.85

Calls 1

keybindingsMethod · 0.65

Tested by

no test coverage detected