Bug 363934 - keyboard tab bar navigation broken, r=gavin, sr=neil

This commit is contained in:
martijn.martijn@gmail.com 2007-08-21 22:02:25 -07:00
Родитель e9c1e7506b
Коммит 4c32f26a5c
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -665,8 +665,12 @@
this.mCurrentBrowser.focusedElement = document.commandDispatcher.focusedElement;
}
if (this.mCurrentBrowser.focusedElement) {
// Clear focus outline before we draw on top of it
if (this.mCurrentBrowser.focusedElement &&
this.mCurrentBrowser.focusedElement.parentNode !=
this.mCurrentTab.parentNode) {
// Clear focus outline before we draw on top of it.
// Only blur the focused element if it isn't a tab,
// to avoid breaking keyboard tab navigation
this.mCurrentBrowser.focusedElement.blur();
}
this.mCurrentBrowser.setAttribute("type", "content-targetable");