(key string)
| 225 | } |
| 226 | |
| 227 | func (v *PricingView) handleKeyHeader(key string) PricingEvent { |
| 228 | switch key { |
| 229 | case "left": |
| 230 | return PricingEventPrevView |
| 231 | case "right": |
| 232 | return PricingEventNextView |
| 233 | case "down": |
| 234 | v.ActiveSection = PricingSectionCommand |
| 235 | v.UpdateSuggestions() |
| 236 | case "esc": |
| 237 | return PricingEventQuit |
| 238 | } |
| 239 | return PricingEventNone |
| 240 | } |
| 241 | |
| 242 | func (v *PricingView) handleKeyCommand(key string) PricingEvent { |
| 243 | switch key { |
no test coverage detected