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

Method onFocus

src/eepp/ui/uicodeeditor.cpp:1083–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083Uint32 UICodeEditor::onFocus( NodeFocusReason reason ) {
1084 if ( !mLocked ) {
1085 mLastExecuteEventId = getInput()->getEventsSentId();
1086 resetCursor();
1087 getUISceneNode()->getWindow()->startTextInput();
1088 mDoc->setActiveClient( this );
1089 updateIMELocation();
1090 }
1091 for ( auto& plugin : mPlugins )
1092 plugin->onFocus( this );
1093 mLastActivity.restart();
1094 return UIWidget::onFocus( reason );
1095}
1096
1097Uint32 UICodeEditor::onFocusLoss() {
1098 if ( mMouseDown )

Callers

nothing calls this directly

Calls 5

onFocusFunction · 0.85
setActiveClientMethod · 0.80
startTextInputMethod · 0.45
getWindowMethod · 0.45
restartMethod · 0.45

Tested by

no test coverage detected