Browse Source

Workaround for Mac OS, fixes focus after a mouse click.

pull/1/head
Maciej Suminski 12 years ago
parent
commit
ebf35fd43a
  1. 7
      common/tool/tool_dispatcher.cpp

7
common/tool/tool_dispatcher.cpp

@ -240,6 +240,13 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
evt = TOOL_EVENT( TC_MOUSE, TA_MOUSE_MOTION, mods );
evt->SetMousePosition( pos );
}
#ifdef __APPLE__
// TODO That's a big ugly workaround, somehow DRAWPANEL_GAL loses focus
// after second LMB click and currently I have no means to do better debugging
if( type == wxEVT_LEFT_UP )
m_editFrame->GetGalCanvas()->SetFocus();
#endif /* __APPLE__ */
}
// Keyboard handling

Loading…
Cancel
Save