File diff r21435:37fd42ff92b8 → r21436:38079fc3bcd8
src/window.cpp
Show inline comments
 
@@ -448,7 +448,7 @@ bool EditBoxInGlobalFocus()
 
void Window::UnfocusFocusedWidget()
 
{
 
	if (this->nested_focus != NULL) {
 
		if (this->nested_focus->type == WWT_EDITBOX) _video_driver->EditBoxLostFocus();
 
		if (this->nested_focus->type == WWT_EDITBOX) VideoDriver::GetInstance()->EditBoxLostFocus();
 

	
 
		/* Repaint the widget that lost focus. A focused edit box may else leave the caret on the screen. */
 
		this->nested_focus->SetDirty(this);
 
@@ -472,7 +472,7 @@ bool Window::SetFocusedWidget(int widget
 

	
 
		/* Repaint the widget that lost focus. A focused edit box may else leave the caret on the screen. */
 
		this->nested_focus->SetDirty(this);
 
		if (this->nested_focus->type == WWT_EDITBOX) _video_driver->EditBoxLostFocus();
 
		if (this->nested_focus->type == WWT_EDITBOX) VideoDriver::GetInstance()->EditBoxLostFocus();
 
	}
 
	this->nested_focus = this->GetWidget<NWidgetCore>(widget_index);
 
	return true;
 
@@ -483,7 +483,7 @@ bool Window::SetFocusedWidget(int widget
 
 */
 
void Window::OnFocusLost()
 
{
 
	if (this->nested_focus != NULL && this->nested_focus->type == WWT_EDITBOX) _video_driver->EditBoxLostFocus();
 
	if (this->nested_focus != NULL && this->nested_focus->type == WWT_EDITBOX) VideoDriver::GetInstance()->EditBoxLostFocus();
 
}
 

	
 
/**