MCPcopy Create free account
hub / github.com/MyGUI/mygui / onKeyLostFocus

Method onKeyLostFocus

MyGUIEngine/src/MyGUI_EditBox.cpp:283–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 }
282
283 void EditBox::onKeyLostFocus(Widget* _new)
284 {
285 if (mIsPressed)
286 {
287 mIsPressed = false;
288 updateEditState();
289
290 if (mClientText != nullptr)
291 {
292 mCursorActive = false;
293 Gui::getInstance().eventFrameStart -= newDelegate(this, &EditBox::frameEntered);
294 mClientText->setVisibleCursor(false);
295 mClientText->setSelectBackground(false);
296 }
297 }
298
299 Base::onKeyLostFocus(_new);
300 }
301
302 static bool isWhitespace(const UString::code_point& c)
303 {

Callers

nothing calls this directly

Calls 3

newDelegateFunction · 0.85
setVisibleCursorMethod · 0.80
setSelectBackgroundMethod · 0.80

Tested by

no test coverage detected