in wxUniv, non-editable textctrl must be set focus, so that could get input value

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:39:13 +00:00
parent c24ded647e
commit 7138937cb1

View File

@@ -203,7 +203,7 @@ void TextCtrlTestCase::ReadOnly()
// SetEditable() is supposed to override wxTE_READONLY
m_text->SetEditable(true);
#ifdef __WXOSX__
#if defined(__WXOSX_COCOA__) || defined(__WXUNIVERSAL__)
// a ready only text field might not have been focusable at all
m_text->SetFocus();
#endif