code: func (g *Gui) DeleteKeybinding(viewname string, key interface{}, mod Modifier) error {
  	k, ch, err := getKey(key)
  	if err != nil {
  		return err
  	}
  
  	for i, kb := range g.keybindings {
  		if kb.viewName == viewname && kb.ch == ch && kb.key == k && kb.mod == mod {
  			g.keybindings = append(g.keybindings[:i], g.keybindings[i+1:]...)
  			return nil
  		}
  	}
  	return errors.New("keybinding not found")
  }
docs: // DeleteKeybinding deletes a keybinding.