Bug 1849772 - Focus thread tree's table body instead of the tree itself. r=babolivier
Differential Revision: https://phabricator.services.mozilla.com/D186667 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ad83755614
Коммит
d2be9a2182
|
@ -168,7 +168,7 @@ class MailGoButton extends MailTabButton {
|
|||
if (index != nsMsgViewIndex_None) {
|
||||
if (currentWindow.threadTree) {
|
||||
currentWindow.threadTree.selectedIndex = index;
|
||||
currentWindow.threadTree.focus();
|
||||
currentWindow.threadTree.table.body.focus();
|
||||
} else {
|
||||
currentWindow.gViewWrapper.dbView.selection.select(index);
|
||||
currentWindow.displayMessage(
|
||||
|
|
|
@ -13,6 +13,7 @@ var {
|
|||
assert_messages_in_view,
|
||||
be_in_folder,
|
||||
create_folder,
|
||||
focus_thread_tree,
|
||||
get_about_3pane,
|
||||
make_message_sets_in_folders,
|
||||
mc,
|
||||
|
@ -72,7 +73,7 @@ add_task(async function test_control_shift_k_triggers_display() {
|
|||
assert_quick_filter_bar_visible(false);
|
||||
|
||||
// focus explicitly on the thread pane so we know where the focus is.
|
||||
get_about_3pane().threadTree.focus();
|
||||
focus_thread_tree();
|
||||
|
||||
// hit control-shift-k
|
||||
EventUtils.synthesizeKey("k", { accelKey: true, shiftKey: true });
|
||||
|
|
|
@ -2598,7 +2598,7 @@ function focus_folder_tree() {
|
|||
*/
|
||||
function focus_thread_tree() {
|
||||
let threadTree = get_about_3pane().document.getElementById("threadTree");
|
||||
threadTree.focus();
|
||||
threadTree.table.body.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче