| 844 | } |
| 845 | |
| 846 | void KeyConfigPrefs::OnSelected(wxCommandEvent & WXUNUSED(e)) |
| 847 | { |
| 848 | mCommandSelected = mView->GetSelected(); |
| 849 | mKey->Clear(); |
| 850 | |
| 851 | if (mCommandSelected != wxNOT_FOUND) { |
| 852 | bool canset = mView->CanSetKey(mCommandSelected); |
| 853 | if (canset) { |
| 854 | mKey->AppendText(mView->GetKey(mCommandSelected).Display()); |
| 855 | } |
| 856 | |
| 857 | mKey->Enable(canset); |
| 858 | mSet->Enable(canset); |
| 859 | mClear->Enable(canset); |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | void KeyConfigPrefs::OnViewBy(wxCommandEvent & e) |
| 864 | { |
nothing calls this directly
no test coverage detected