Sets the key for the given name
| 393 | // Sets the key for the given name |
| 394 | // |
| 395 | bool |
| 396 | KeyView::SetKeyByName(const CommandID & name, const NormalizedKeyString & key) |
| 397 | { |
| 398 | int index = GetIndexByName(name); |
| 399 | |
| 400 | // Bail is the name wasn't found |
| 401 | if (index == wxNOT_FOUND) |
| 402 | { |
| 403 | return false; |
| 404 | } |
| 405 | |
| 406 | // Go set the key |
| 407 | return SetKey(index, key); |
| 408 | } |
| 409 | |
| 410 | // |
| 411 | // Sets the view type |