compilation warnings fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -111,7 +111,6 @@ static pascal OSStatus TextInputEventHandler( EventHandlerCallRef handler , Even
|
|||||||
UInt32 keyCode ;
|
UInt32 keyCode ;
|
||||||
UInt32 modifiers ;
|
UInt32 modifiers ;
|
||||||
Point point ;
|
Point point ;
|
||||||
UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ;
|
|
||||||
|
|
||||||
EventRef rawEvent ;
|
EventRef rawEvent ;
|
||||||
|
|
||||||
@@ -123,8 +122,6 @@ static pascal OSStatus TextInputEventHandler( EventHandlerCallRef handler , Even
|
|||||||
GetEventParameter( rawEvent, kEventParamMouseLocation, typeQDPoint, NULL,
|
GetEventParameter( rawEvent, kEventParamMouseLocation, typeQDPoint, NULL,
|
||||||
sizeof( Point ), NULL, &point );
|
sizeof( Point ), NULL, &point );
|
||||||
|
|
||||||
UInt32 message = (keyCode << 8) + charCode;
|
|
||||||
|
|
||||||
switch ( GetEventKind( event ) )
|
switch ( GetEventKind( event ) )
|
||||||
{
|
{
|
||||||
case kEventTextInputUnicodeForKeyEvent :
|
case kEventTextInputUnicodeForKeyEvent :
|
||||||
@@ -142,6 +139,9 @@ static pascal OSStatus TextInputEventHandler( EventHandlerCallRef handler , Even
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
// this may lead to double events sent to a window in case all handlers have skipped the key down event
|
// this may lead to double events sent to a window in case all handlers have skipped the key down event
|
||||||
|
UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ;
|
||||||
|
UInt32 message = (keyCode << 8) + charCode;
|
||||||
|
|
||||||
if ( (focus != NULL) && wxTheApp->MacSendKeyDownEvent(
|
if ( (focus != NULL) && wxTheApp->MacSendKeyDownEvent(
|
||||||
focus , message , modifiers , when , point.h , point.v ) )
|
focus , message , modifiers , when , point.h , point.v ) )
|
||||||
{
|
{
|
||||||
|
@@ -111,7 +111,6 @@ static pascal OSStatus TextInputEventHandler( EventHandlerCallRef handler , Even
|
|||||||
UInt32 keyCode ;
|
UInt32 keyCode ;
|
||||||
UInt32 modifiers ;
|
UInt32 modifiers ;
|
||||||
Point point ;
|
Point point ;
|
||||||
UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ;
|
|
||||||
|
|
||||||
EventRef rawEvent ;
|
EventRef rawEvent ;
|
||||||
|
|
||||||
@@ -123,8 +122,6 @@ static pascal OSStatus TextInputEventHandler( EventHandlerCallRef handler , Even
|
|||||||
GetEventParameter( rawEvent, kEventParamMouseLocation, typeQDPoint, NULL,
|
GetEventParameter( rawEvent, kEventParamMouseLocation, typeQDPoint, NULL,
|
||||||
sizeof( Point ), NULL, &point );
|
sizeof( Point ), NULL, &point );
|
||||||
|
|
||||||
UInt32 message = (keyCode << 8) + charCode;
|
|
||||||
|
|
||||||
switch ( GetEventKind( event ) )
|
switch ( GetEventKind( event ) )
|
||||||
{
|
{
|
||||||
case kEventTextInputUnicodeForKeyEvent :
|
case kEventTextInputUnicodeForKeyEvent :
|
||||||
@@ -142,6 +139,9 @@ static pascal OSStatus TextInputEventHandler( EventHandlerCallRef handler , Even
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
// this may lead to double events sent to a window in case all handlers have skipped the key down event
|
// this may lead to double events sent to a window in case all handlers have skipped the key down event
|
||||||
|
UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ;
|
||||||
|
UInt32 message = (keyCode << 8) + charCode;
|
||||||
|
|
||||||
if ( (focus != NULL) && wxTheApp->MacSendKeyDownEvent(
|
if ( (focus != NULL) && wxTheApp->MacSendKeyDownEvent(
|
||||||
focus , message , modifiers , when , point.h , point.v ) )
|
focus , message , modifiers , when , point.h , point.v ) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user