]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/textctrl.mm
set default resolutions in case of errors
[wxWidgets.git] / src / osx / cocoa / textctrl.mm
index d5af7b488c0dfd65334efd4a90de3b5458cde664..accef767a8415e5beabff4925a701c7ddc323143 100644 (file)
@@ -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