Changeset - r20936:99b9f68e0f14
[Not reviewed]
master
0 2 0
michi_cc - 11 years ago 2013-11-14 23:03:54
michi_cc@openttd.org
(svn r26001) -Fix [FS#5795a] (r25686): [OSX] Clear any pending marked characters from an edit box losing focus.
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/console_gui.cpp
Show inline comments
 
@@ -185,6 +185,7 @@ struct IConsoleWindow : Window
 
	~IConsoleWindow()
 
	{
 
		_iconsole_mode = ICONSOLE_CLOSED;
 
		_video_driver->EditBoxLostFocus();
 
	}
 

	
 
	/**
src/video/cocoa/cocoa_v.mm
Show inline comments
 
@@ -579,6 +579,8 @@ void VideoDriver_Cocoa::EditBoxLostFocus
 
			[ [ NSInputManager currentInputManager ] markedTextAbandoned:_cocoa_subdriver->cocoaview ];
 
		}
 
	}
 
	/* Clear any marked string from the current edit box. */
 
	HandleTextInput(NULL, true);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)