| 217 | } |
| 218 | |
| 219 | void KeybindingsMenu::exitActiveMode() { |
| 220 | if (!m_activeKeybinding) |
| 221 | return; |
| 222 | |
| 223 | m_activeKeybinding->parent()->fetchChild<ButtonWidget>("deleteBinding")->hide(); |
| 224 | convert<ButtonWidget>(m_activeKeybinding)->setHighlighted(false); |
| 225 | m_activeKeybinding = nullptr; |
| 226 | m_currentMods = KeyMod::NoMod; |
| 227 | } |
| 228 | |
| 229 | void KeybindingsMenu::apply() { |
| 230 | m_context->refreshKeybindings(); |
nothing calls this directly
no test coverage detected