Bug 382349 - address review comment about making sense of the comment explaining why we .focus() twice to shift focus once

This commit is contained in:
Phil Ringnalda 2009-02-14 22:25:03 -08:00
Родитель 8de008e11a
Коммит 9d42f5eb32
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -992,7 +992,9 @@ function SetFocusThreadPane()
function SetFocusMessagePane()
{
// messagePaneFrame.focus() fails to blur the currently focused element
// Calling .focus() on content doesn't blur the previously focused chrome
// element, so we shift focus to the XUL pane first, to not leave another
// pane looking like it has focus.
GetMessagePane().focus();
GetMessagePaneFrame().focus();
}