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:
Adi Oanca 2005-04-14 21:17:07 +00:00
parent 94b849e1e2
commit e86740b699
1 changed files with 6 additions and 4 deletions

View File

@ -797,6 +797,7 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
msg->FindInt32( "raw_char", &raw_char );
msg->FindString( "bytes", &string );
// TODO: USE target !!!!
if ( !handleKeyDown( string[0], (uint32)modifiers) )
{
if(fFocus)
@ -812,6 +813,7 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
msg->FindString( "bytes", &string );
// TODO: USE target !!!!
if(fFocus)
fFocus->KeyUp( string, strlen(string) );
@ -821,14 +823,14 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
case B_UNMAPPED_KEY_UP:
case B_MODIFIERS_CHANGED:
{
if (fFocus)
fFocus->MessageReceived( msg );
if (target != this && target != top_view)
target->MessageReceived( msg );
break;
}
case B_MOUSE_WHEEL_CHANGED:
{
if (fFocus)
fFocus->MessageReceived( msg );
if (target != this && target != top_view)
target->MessageReceived( msg );
break;
}
case B_MOUSE_DOWN: