From 8ceef6ec61cf82268805cf2a0db5bf6718e344a3 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Thu, 14 Nov 2013 23:03:54 +0000 Subject: (svn r26001) -Fix [FS#5795a] (r25686): [OSX] Clear any pending marked characters from an edit box losing focus. --- src/video/cocoa/cocoa_v.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/video') diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index afb37bd39..a9f3981d1 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -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); } /** -- cgit v1.2.3-54-g00ecf