support for true two button mouse under OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8f793b407c
commit
01c185668f
@ -264,6 +264,11 @@ pascal OSStatus MouseEventHandler( EventHandlerCallRef handler , EventRef event
|
||||
if ( button == 0 || GetEventKind( event ) == kEventMouseUp )
|
||||
modifiers += btnState ;
|
||||
|
||||
// temporary hack to support true two button mouse
|
||||
if ( button == kEventMouseButtonSecondary )
|
||||
{
|
||||
modifiers |= controlKey ;
|
||||
}
|
||||
WindowRef window ;
|
||||
short windowPart = ::FindWindow(point, &window);
|
||||
|
||||
|
@ -264,6 +264,11 @@ pascal OSStatus MouseEventHandler( EventHandlerCallRef handler , EventRef event
|
||||
if ( button == 0 || GetEventKind( event ) == kEventMouseUp )
|
||||
modifiers += btnState ;
|
||||
|
||||
// temporary hack to support true two button mouse
|
||||
if ( button == kEventMouseButtonSecondary )
|
||||
{
|
||||
modifiers |= controlKey ;
|
||||
}
|
||||
WindowRef window ;
|
||||
short windowPart = ::FindWindow(point, &window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user