X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78a17075019ea5bed5085d3afeb822c47d77a82c..6178debcd342963974dbdce6ac2ddb2fbe89e42a:/src/osx/cocoa/textctrl.mm?ds=sidebyside diff --git a/src/osx/cocoa/textctrl.mm b/src/osx/cocoa/textctrl.mm index d5af7b488c..accef767a8 100644 --- a/src/osx/cocoa/textctrl.mm +++ b/src/osx/cocoa/textctrl.mm @@ -323,11 +323,10 @@ wxNSTextViewControl::~wxNSTextViewControl() bool wxNSTextViewControl::CanFocus() const { - // we need to override so that we don't return the CanFocus value of - // the text view's overriding scroll view. - if (m_textView) - return [m_textView canBecomeKeyView]; - return false; + // since this doesn't work (return false), we hardcode + // if (m_textView) + // return [m_textView canBecomeKeyView]; + return true; } wxString wxNSTextViewControl::GetStringValue() const