Forward message to the handler set inside task_looper() no to fFocus
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12395 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -797,6 +797,7 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
msg->FindInt32( "raw_char", &raw_char );
|
msg->FindInt32( "raw_char", &raw_char );
|
||||||
msg->FindString( "bytes", &string );
|
msg->FindString( "bytes", &string );
|
||||||
|
|
||||||
|
// TODO: USE target !!!!
|
||||||
if ( !handleKeyDown( string[0], (uint32)modifiers) )
|
if ( !handleKeyDown( string[0], (uint32)modifiers) )
|
||||||
{
|
{
|
||||||
if(fFocus)
|
if(fFocus)
|
||||||
@@ -812,6 +813,7 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
|
|
||||||
msg->FindString( "bytes", &string );
|
msg->FindString( "bytes", &string );
|
||||||
|
|
||||||
|
// TODO: USE target !!!!
|
||||||
if(fFocus)
|
if(fFocus)
|
||||||
fFocus->KeyUp( string, strlen(string) );
|
fFocus->KeyUp( string, strlen(string) );
|
||||||
|
|
||||||
@@ -821,14 +823,14 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
|||||||
case B_UNMAPPED_KEY_UP:
|
case B_UNMAPPED_KEY_UP:
|
||||||
case B_MODIFIERS_CHANGED:
|
case B_MODIFIERS_CHANGED:
|
||||||
{
|
{
|
||||||
if (fFocus)
|
if (target != this && target != top_view)
|
||||||
fFocus->MessageReceived( msg );
|
target->MessageReceived( msg );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case B_MOUSE_WHEEL_CHANGED:
|
case B_MOUSE_WHEEL_CHANGED:
|
||||||
{
|
{
|
||||||
if (fFocus)
|
if (target != this && target != top_view)
|
||||||
fFocus->MessageReceived( msg );
|
target->MessageReceived( msg );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case B_MOUSE_DOWN:
|
case B_MOUSE_DOWN:
|
||||||
|
|||||||
Reference in New Issue
Block a user