Another wxOSX compilation fix after the changes of r72207.
Don't use position for keyboard events in wxWebKitCtrl code neither. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,7 +99,6 @@ static pascal OSStatus wxWebKitKeyEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
|
|
||||||
UInt32 keyCode ;
|
UInt32 keyCode ;
|
||||||
UInt32 modifiers ;
|
UInt32 modifiers ;
|
||||||
Point point ;
|
|
||||||
UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ;
|
UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ;
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
@@ -131,7 +130,6 @@ static pascal OSStatus wxWebKitKeyEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
GetEventParameter( event, kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, &charCode );
|
GetEventParameter( event, kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, &charCode );
|
||||||
GetEventParameter( event, kEventParamKeyCode, typeUInt32, NULL, sizeof(UInt32), NULL, &keyCode );
|
GetEventParameter( event, kEventParamKeyCode, typeUInt32, NULL, sizeof(UInt32), NULL, &keyCode );
|
||||||
GetEventParameter( event, kEventParamKeyModifiers, typeUInt32, NULL, sizeof(UInt32), NULL, &modifiers );
|
GetEventParameter( event, kEventParamKeyModifiers, typeUInt32, NULL, sizeof(UInt32), NULL, &modifiers );
|
||||||
GetEventParameter( event, kEventParamMouseLocation, typeQDPoint, NULL, sizeof(Point), NULL, &point );
|
|
||||||
|
|
||||||
UInt32 message = (keyCode << 8) + charCode;
|
UInt32 message = (keyCode << 8) + charCode;
|
||||||
switch ( GetEventKind( event ) )
|
switch ( GetEventKind( event ) )
|
||||||
@@ -143,7 +141,7 @@ static pascal OSStatus wxWebKitKeyEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
WXEVENTHANDLERCALLREF formerHandler = wxTheApp->MacGetCurrentEventHandlerCallRef() ;
|
WXEVENTHANDLERCALLREF formerHandler = wxTheApp->MacGetCurrentEventHandlerCallRef() ;
|
||||||
wxTheApp->MacSetCurrentEvent( event , handler ) ;
|
wxTheApp->MacSetCurrentEvent( event , handler ) ;
|
||||||
if ( /* focus && */ wxTheApp->MacSendKeyDownEvent(
|
if ( /* focus && */ wxTheApp->MacSendKeyDownEvent(
|
||||||
focus , message , modifiers , when , point.h , point.v , uniChar[0] ) )
|
focus , message , modifiers , when , uniChar[0] ) )
|
||||||
{
|
{
|
||||||
result = noErr ;
|
result = noErr ;
|
||||||
}
|
}
|
||||||
@@ -153,7 +151,7 @@ static pascal OSStatus wxWebKitKeyEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
|
|
||||||
case kEventRawKeyUp :
|
case kEventRawKeyUp :
|
||||||
if ( /* focus && */ wxTheApp->MacSendKeyUpEvent(
|
if ( /* focus && */ wxTheApp->MacSendKeyUpEvent(
|
||||||
focus , message , modifiers , when , point.h , point.v , uniChar[0] ) )
|
focus , message , modifiers , when , uniChar[0] ) )
|
||||||
{
|
{
|
||||||
result = noErr ;
|
result = noErr ;
|
||||||
}
|
}
|
||||||
@@ -167,8 +165,6 @@ static pascal OSStatus wxWebKitKeyEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
event.m_rawControlDown = modifiers & controlKey;
|
event.m_rawControlDown = modifiers & controlKey;
|
||||||
event.m_altDown = modifiers & optionKey;
|
event.m_altDown = modifiers & optionKey;
|
||||||
event.m_controlDown = modifiers & cmdKey;
|
event.m_controlDown = modifiers & cmdKey;
|
||||||
event.m_x = point.h;
|
|
||||||
event.m_y = point.v;
|
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
event.m_uniChar = uniChar[0] ;
|
event.m_uniChar = uniChar[0] ;
|
||||||
|
Reference in New Issue
Block a user