From 81533a3af6ed598c32a35e1c1c2b60f4908f5541 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 7 Apr 2010 20:27:17 +0000 Subject: [PATCH] fixing focus, fixes #11911 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/textctrl.mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.45.2