corrected button modifier state in carbon, cursor setup corrected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1384,7 +1384,11 @@ void wxApp::MacHandleModifierEvents( WXEVENTREF evr )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ev->modifiers = GetCurrentKeyModifiers() ;
|
EventRecord nev ;
|
||||||
|
WaitNextEvent( 0 , &nev , 0 , NULL ) ;
|
||||||
|
ev->modifiers = nev.modifiers ;
|
||||||
|
// KeyModifiers unfortunately don't include btnState...
|
||||||
|
// ev->modifiers = GetCurrentKeyModifiers() ;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if ( ev->modifiers != s_lastModifiers && wxWindow::FindFocus() != NULL )
|
if ( ev->modifiers != s_lastModifiers && wxWindow::FindFocus() != NULL )
|
||||||
@@ -2143,23 +2147,30 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
|||||||
|
|
||||||
switch (windowPart)
|
switch (windowPart)
|
||||||
{
|
{
|
||||||
// fixes for setting the cursor back from dominic mazzoni
|
case inContent :
|
||||||
case inMenuBar :
|
|
||||||
UMAShowArrowCursor();
|
|
||||||
break ;
|
|
||||||
case inSysWindow :
|
|
||||||
UMAShowArrowCursor();
|
|
||||||
break ;
|
|
||||||
default:
|
|
||||||
{
|
{
|
||||||
wxTopLevelWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
wxTopLevelWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
||||||
if ( win )
|
if ( win )
|
||||||
win->MacMouseMoved( ev , windowPart ) ;
|
win->MacMouseMoved( ev , windowPart ) ;
|
||||||
else
|
else
|
||||||
UMAShowArrowCursor();
|
{
|
||||||
|
if ( wxIsBusy() )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
UMAShowArrowCursor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default :
|
||||||
|
{
|
||||||
|
if ( wxIsBusy() )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
UMAShowArrowCursor();
|
||||||
|
}
|
||||||
|
break ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break ;
|
break ;
|
||||||
|
@@ -1384,7 +1384,11 @@ void wxApp::MacHandleModifierEvents( WXEVENTREF evr )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ev->modifiers = GetCurrentKeyModifiers() ;
|
EventRecord nev ;
|
||||||
|
WaitNextEvent( 0 , &nev , 0 , NULL ) ;
|
||||||
|
ev->modifiers = nev.modifiers ;
|
||||||
|
// KeyModifiers unfortunately don't include btnState...
|
||||||
|
// ev->modifiers = GetCurrentKeyModifiers() ;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if ( ev->modifiers != s_lastModifiers && wxWindow::FindFocus() != NULL )
|
if ( ev->modifiers != s_lastModifiers && wxWindow::FindFocus() != NULL )
|
||||||
@@ -2143,23 +2147,30 @@ void wxApp::MacHandleOSEvent( WXEVENTREF evr )
|
|||||||
|
|
||||||
switch (windowPart)
|
switch (windowPart)
|
||||||
{
|
{
|
||||||
// fixes for setting the cursor back from dominic mazzoni
|
case inContent :
|
||||||
case inMenuBar :
|
|
||||||
UMAShowArrowCursor();
|
|
||||||
break ;
|
|
||||||
case inSysWindow :
|
|
||||||
UMAShowArrowCursor();
|
|
||||||
break ;
|
|
||||||
default:
|
|
||||||
{
|
{
|
||||||
wxTopLevelWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
wxTopLevelWindowMac* win = wxFindWinFromMacWindow( window ) ;
|
||||||
if ( win )
|
if ( win )
|
||||||
win->MacMouseMoved( ev , windowPart ) ;
|
win->MacMouseMoved( ev , windowPart ) ;
|
||||||
else
|
else
|
||||||
UMAShowArrowCursor();
|
{
|
||||||
|
if ( wxIsBusy() )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
UMAShowArrowCursor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default :
|
||||||
|
{
|
||||||
|
if ( wxIsBusy() )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else
|
||||||
|
UMAShowArrowCursor();
|
||||||
|
}
|
||||||
|
break ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break ;
|
break ;
|
||||||
|
Reference in New Issue
Block a user