MCPcopy Create free account
hub / github.com/SpartanJ/eepp / onFocusLoss

Method onFocusLoss

src/eepp/ui/uicodeeditor.cpp:1097–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095}
1096
1097Uint32 UICodeEditor::onFocusLoss() {
1098 if ( mMouseDown )
1099 getInput()->captureMouse( false );
1100 stopMinimapDragging( getInput()->getMousePos().asFloat() );
1101 mMouseDown = false;
1102 mCursorVisible = false;
1103 getSceneNode()->getWindow()->stopTextInput();
1104 getUISceneNode()->setCursor( Cursor::Arrow );
1105 if ( mDoc->getActiveClient() == this )
1106 mDoc->setActiveClient( nullptr );
1107 for ( auto& plugin : mPlugins )
1108 plugin->onFocusLoss( this );
1109 mLastActivity.restart();
1110 return UIWidget::onFocusLoss();
1111}
1112
1113Uint32 UICodeEditor::onTextInput( const TextInputEvent& event ) {
1114 mLastActivity.restart();

Callers

nothing calls this directly

Calls 10

onFocusLossFunction · 0.85
captureMouseMethod · 0.80
getActiveClientMethod · 0.80
setActiveClientMethod · 0.80
asFloatMethod · 0.45
getMousePosMethod · 0.45
stopTextInputMethod · 0.45
getWindowMethod · 0.45
setCursorMethod · 0.45
restartMethod · 0.45

Tested by

no test coverage detected