This commit is contained in:
kmcclusk%netscape.com 1998-08-17 17:58:37 +00:00
Родитель 40765150cf
Коммит 1220309b5c
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -736,6 +736,14 @@ void nsWindow::Enable(PRBool bState)
//-------------------------------------------------------------------------
void nsWindow::SetFocus(void)
{
// Go get the parent of all widget's to determine which widget
// tree to use to set the focus.
Widget w = mWidget;
while (NULL != XtParent(w)) {
w = XtParent(w);
}
XtSetKeyboardFocus(w, mWidget);
}