code: func (m *Modal) AddButtons(labels []string) *Modal {
  	for index, label := range labels {
  		func(i int, l string) {
  			m.form.AddButton(label, func() {
  				if m.done != nil {
  					m.done(i, l)
  				}
  			})
  			button := m.form.GetButton(m.form.GetButtonCount() - 1)
  			button.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
  				switch event.Key() {
  				case tcell.KeyDown, tcell.KeyRight:
  					return tcell.NewEventKey(tcell.KeyTab, 0, tcell.ModNone)
  				case tcell.KeyUp, tcell.KeyLeft:
  					return tcell.NewEventKey(tcell.KeyBacktab, 0, tcell.ModNone)
  				}
  				return event
  			})
  		}(index, label)
  	}
  	return m
  }
docs: // AddButtons adds buttons to the window. There must be at least one button and
  // a "done" handler so the window can be closed again.