| 145 | } |
| 146 | |
| 147 | bool KeybindingsMenu::activateBinding(Widget* widget) { |
| 148 | exitActiveMode(); |
| 149 | |
| 150 | m_activeKeybinding = widget; |
| 151 | m_activeKeybinding->parent()->fetchChild<ButtonWidget>("deleteBinding")->show(); |
| 152 | convert<ButtonWidget>(m_activeKeybinding)->setHighlighted(true); |
| 153 | |
| 154 | return false; |
| 155 | } |
| 156 | |
| 157 | void KeybindingsMenu::setKeybinding(KeyChord desc) { |
| 158 | if (!m_activeKeybinding) |
nothing calls this directly
no test coverage detected