Skip to content

Conversation

@eirikbakke
Copy link
Contributor

Hide the menu bar in full screen mode, but allow it to be shown again automatically if the user moves the mouse to the top of the screen, or invokes a menu keyboard mnemonic. This is already the default behavior on MacOS, but not on other OSes.

Simply hiding menu bar would be a one-line change in o.n.core.windows.view.ui.MainWindow--however a fair bit of logic is needed to make the menu bar properly appear and disappear on demand. The related logic is in the separate file AutoHidingMenuBar.java. I've done quite thorough manual testing of this on Windows 10 and Ubuntu 18, including in a multi-monitor setup, in the full NetBeans IDE as well as in my NetBeans Platform application.

See https://issues.apache.org/jira/browse/NETBEANS-731 .

…it if the user moves the mouse to the top of the screen, or invokes a keyboard mnemonic.
@geertjanw
Copy link
Member

How confident are you of this, do you foresee any potential problems or side effects?

@eirikbakke
Copy link
Contributor Author

Quite confident--I don't foresee problems, and I've tested it on both Windows and Linux (the code is not used on MacOS).

@geertjanw
Copy link
Member

OK, merging.

@geertjanw geertjanw merged commit 398bf7f into apache:master Sep 11, 2018
@eirikbakke eirikbakke deleted the NETBEANS-731 branch October 5, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants