| 1095 | } |
| 1096 | |
| 1097 | Uint32 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 | |
| 1113 | Uint32 UICodeEditor::onTextInput( const TextInputEvent& event ) { |
| 1114 | mLastActivity.restart(); |
nothing calls this directly
no test coverage detected