зеркало из https://github.com/mozilla/gecko-dev.git
Implemented SetFocus.
This commit is contained in:
Родитель
40765150cf
Коммит
1220309b5c
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче