From f6e3849c071287e6f901dd5012e66214dda6f32b Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 1 Jun 2004 08:21:46 +0000 Subject: [PATCH] we have to be able to tell whether a control can be focused by the os before a SetFocus is issued, otherwise native focus handling is not in synch... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index f9549fda4d..90e55a094b 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -935,14 +935,13 @@ bool wxWindowMac::SetBackgroundColour(const wxColour& col ) bool wxWindowMac::MacCanFocus() const { -#if 0 - // there is currently no way to determinate whether the window is running in full keyboard - // access mode, therefore we cannot rely on these features yet + // there is currently no way to determine whether the window is running in full keyboard + // access mode, therefore we cannot rely on these features, yet the only other way would be + // to issue a SetKeyboardFocus event and verify after whether it succeeded, this would risk problems + // in event handlers... UInt32 features = 0 ; GetControlFeatures( (ControlRef) m_macControl , &features ) ; return features & ( kControlSupportsFocus | kControlGetsFocusOnClick ) ; -#endif - return true ; } -- 2.47.2