MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / exitActiveMode

Method exitActiveMode

source/frontend/StarKeybindingsMenu.cpp:219–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void 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
229void KeybindingsMenu::apply() {
230 m_context->refreshKeybindings();

Callers

nothing calls this directly

Calls 3

setHighlightedMethod · 0.80
hideMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected