(key string)
| 240 | } |
| 241 | |
| 242 | func (v *PricingView) handleKeyCommand(key string) PricingEvent { |
| 243 | switch key { |
| 244 | case "esc": |
| 245 | return PricingEventQuit |
| 246 | case "tab": |
| 247 | v.handleTabBuilder() |
| 248 | return PricingEventNone |
| 249 | } |
| 250 | if v.BuilderFocus == BuilderFocusField { |
| 251 | return v.handleKeyBuilderField(key) |
| 252 | } |
| 253 | return v.handleKeyBuilderSuggestions(key) |
| 254 | } |
| 255 | |
| 256 | func (v *PricingView) handleTabBuilder() { |
| 257 | input := v.CommandBuilder.SearchInput |
no test coverage detected