mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r26001) -Fix [FS#5795a] (r25686): [OSX] Clear any pending marked characters from an edit box losing focus.
This commit is contained in:
parent
a31b46ba84
commit
8ceef6ec61
@ -185,6 +185,7 @@ struct IConsoleWindow : Window
|
|||||||
~IConsoleWindow()
|
~IConsoleWindow()
|
||||||
{
|
{
|
||||||
_iconsole_mode = ICONSOLE_CLOSED;
|
_iconsole_mode = ICONSOLE_CLOSED;
|
||||||
|
_video_driver->EditBoxLostFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -579,6 +579,8 @@ void VideoDriver_Cocoa::EditBoxLostFocus()
|
|||||||
[ [ NSInputManager currentInputManager ] markedTextAbandoned:_cocoa_subdriver->cocoaview ];
|
[ [ NSInputManager currentInputManager ] markedTextAbandoned:_cocoa_subdriver->cocoaview ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Clear any marked string from the current edit box. */
|
||||||
|
HandleTextInput(NULL, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user