-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu bar does not open on first click when certain sidebar elements have focus #14002
Comments
Thank you for the very detailled test! I open the search view Am I doing the right steps? Maybe this is a Windows issue only, I am on Linux. |
I'm on Windows and simply doing this reproduces the issue:
|
I think the relevant difference is whether the |
While it's a clearly a bug, I would classify this as low prio:
@iamfraggle do you have a frequent workflow that is hindered by this issue? |
I've just been trying Theia IDE out for the first time, so no frequent workflow. I agree that it's a nuisance rather than a showstopper. |
I also encounter this issue in our product after upgrading to v1.53.2 from v1.46.0, this also appear to be an issue with "Eclipse Theia IDE". "Eclipse Theia IDE" is using the custom titleBarStyle by default. This issue is reproducible on both Windows and Linux. I do agree that this is not a showstopper issue, but this is a very poor OOB user experience for our customers that are switching from Eclipse to Theia. |
Having to click on the menu item twice might be OK, but when you move the mouse across other top level menu item, it does not automatic open the other menu. |
This issue is introduced by this change, #13720. Comment out the line to handle the this.menuProvider.onDidChange in the browser-menu-plugin.ts file will keep the menu open. But I don't know what the necessary change is required to fix this issue in order to keep the intended behavior of the onDidChange event handler. |
After debugging the issue, this change is working for when I test with native and custom setting. Is this the right fix? This change is for the browser-menu-plugin.ts file, protected showMenuBar(menuBar: DynamicMenuBarWidget, preference = this.getMenuBarVisibility()): void {
if (preference && ['classic', 'visible'].includes(preference)) {
const index = menuBar.activeIndex;
menuBar.clearMenus();
this.fillMenuBar(menuBar);
menuBar.activeIndex = index;
menuBar.openActiveMenu();
} else {
menuBar.clearMenus();
}
} |
@pchuong It seems you found a solution to the issue. Would you be up to create a contribution fixing this? |
Bug Description:
When certain sidebar elements have focus, clicking on the menu bar does not open the selected menu group, but appears to 'weaken' the focus on the element, thus another click will open the menu group.
Clicking again on the menu group to close it returns focus to the original element and so the bug will repeat if attempting to reopen the menu.
For an example of 'weakening focus': when the search input box has focus, the first click on the menu bar will remove the "(up/down for history)" text from the input box, but the insertion caret will still be flashing.
Steps to Reproduce:
Here is the results of my experimentation on whether different sidebar elements exhibit the bug behaviour (Yes means affected):
Explorer
Search
Source Control
Debug
Extensions
Testing
Additional Information
The text was updated successfully, but these errors were encountered: