Accelerators now work for wxDialog; wxToolBarSimple fixed when dragging out of
the toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4381,7 +4381,18 @@ void wxWindow::OnIdle(wxIdleEvent& event)
|
||||
{
|
||||
// Generate a LEAVE event
|
||||
m_mouseInWindow = FALSE;
|
||||
MSWOnMouseLeave(pt.x, pt.y, 0);
|
||||
|
||||
int state;
|
||||
if (::GetKeyState(VK_SHIFT) != 0)
|
||||
state |= MK_SHIFT;
|
||||
if (::GetKeyState(VK_CONTROL) != 0)
|
||||
state |= MK_CONTROL;
|
||||
|
||||
// Unfortunately the mouse button and keyboard state may have changed
|
||||
// by the time the OnIdle function is called, so 'state' may be
|
||||
// meaningless.
|
||||
|
||||
MSWOnMouseLeave(pt.x, pt.y, state);
|
||||
}
|
||||
}
|
||||
UpdateWindowUI();
|
||||
|
Reference in New Issue
Block a user