diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/console_gui.cpp | 1 | ||||
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp index 887dfda60..c3dcdaa12 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -185,6 +185,7 @@ struct IConsoleWindow : Window ~IConsoleWindow() { _iconsole_mode = ICONSOLE_CLOSED; + _video_driver->EditBoxLostFocus(); } /** 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); } /** |