diff options
author | michi_cc <michi_cc@openttd.org> | 2013-11-14 23:03:54 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2013-11-14 23:03:54 +0000 |
commit | 8ceef6ec61cf82268805cf2a0db5bf6718e344a3 (patch) | |
tree | d1cc82454f114eaab37f3b2f324f3343a8b1dc20 /src/video | |
parent | a31b46ba840f1478666001283200b8176314b1f8 (diff) | |
download | openttd-8ceef6ec61cf82268805cf2a0db5bf6718e344a3.tar.xz |
(svn r26001) -Fix [FS#5795a] (r25686): [OSX] Clear any pending marked characters from an edit box losing focus.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 2 |
1 files changed, 2 insertions, 0 deletions
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); } /** |