avoiding a OS-Level set focus for a control that already has the focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
76ee049789
commit
7d0cfe71cf
@ -988,9 +988,11 @@ void wxWindowMac::SetFocus()
|
||||
{
|
||||
if ( AcceptsFocus() )
|
||||
{
|
||||
#if !TARGET_API_MAC_OSX
|
||||
|
||||
wxWindow* former = FindFocus() ;
|
||||
#endif
|
||||
if ( former == this )
|
||||
return ;
|
||||
|
||||
OSStatus err = m_peer->SetFocus( kControlFocusNextPart ) ;
|
||||
// as we cannot rely on the control features to find out whether we are in full keyboard mode, we can only
|
||||
// leave in case of an error
|
||||
|
Loading…
Reference in New Issue
Block a user