eclipse-theia/theia

Previous active tab flicker when navigating the top menu, Navigation sometimes disabled when Webview was last focused

Open

#8,572 创建于 2020年9月29日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)TypeScript (18,676 star) (2,478 fork)batch import
help wantedmenusui/uxwebviews

描述

When focusing a tab inside the main panel and then - navigating between the tabs in the top panel - The focused tab inside the main panel flicker, Before menu closes - the previous-focused-tab getting focus even though the user is still on the menu bar - When navigating by keyboard arrows and the previous-focused-tab was a Webview - sometimes the focus not return back to the menu (because focusing on the webview iframe) so navigation is disabled.

Bug Description:

Steps to Reproduce:

For the flicker issue:

  1. Focus on a file
  2. Click on any tab inside the top menu
  3. Navigate between the menu tabs (by mouse/ keyboard)

For the IFrame issue:

  1. Open a webview
  2. Click on any tab in the top menu
  3. Navigate between the menu tabs by keyboard

This is how it flicker: menu

It happens because there's code for restoring the focus before the menu closes, When navigating on menu - the tab first closes - so previous-focused-tab inside main panel is focused and only then - the next selected tab is opened...

Additional Information

  • Operating System: Windows
  • Theia Version: Master

贡献者指南

Previous active tab flicker when navigating the top menu, Navigation sometimes disabled when Webview was last focused · eclipse-theia/theia#8572 | Good First Issue