r=pedemont, sr=blizzard (platform specific)
OS/2 only - only dispatch key event if there was a char - don't always set shift state to false
This commit is contained in:
mkaply%us.ibm.com 2004-04-24 11:19:48 +00:00
Родитель 796a77795f
Коммит 30bb96a3b6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2266,7 +2266,7 @@ PRBool nsWindow::OnKey( MPARAM mp1, MPARAM mp2)
if ( !(fsFlags & KC_VIRTUALKEY) ||
((fsFlags & KC_CHAR) && (pressEvent.keyCode == 0)) )
{
pressEvent.isShift = PR_FALSE;
// pressEvent.isShift = PR_FALSE;
pressEvent.keyCode = 0;
}
else if (usVKey == VK_SPACE)
@ -2278,9 +2278,9 @@ PRBool nsWindow::OnKey( MPARAM mp1, MPARAM mp2)
pressEvent.charCode = 0;
}
}
rc = DispatchWindowEvent( &pressEvent);
}
rc = DispatchWindowEvent( &pressEvent);
NS_RELEASE( pressEvent.widget);
return rc;
}