| 1081 | } |
| 1082 | |
| 1083 | Uint32 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 | |
| 1097 | Uint32 UICodeEditor::onFocusLoss() { |
| 1098 | if ( mMouseDown ) |
nothing calls this directly
no test coverage detected