Re: Netbeans 6.1 focus-switch glitch



On 30/07/2008 23:33, Lew allegedly wrote:
On Jul 30, 2:16 pm, zerg <z...@xxxxxxxx> wrote:
This is slightly annoying. Switching tasks away from Netbeans and back
seems to focus the menu bar most of the time, so if you, say, type some
code, then alt-tab to the browser displaying some javadoc, then alt-tab
back and type, it pulls down menus and generally goes nuts.

As near as I can tell, most Windows apps focus the menu bar if alt is
pressed, but ignore alt if the app is just gaining focus and alt is
depressed at the time; that is, they require an alt-down event to focus
the menu bar, and alt-down events are only generated if alt goes from
raised to depressed while the app has focus. If you hit alt-tab in a
browser, the browser sees the only alt-down event generated.

Unfortunately, Netbeans appears to generate alt-down events if it gains
focus while alt is being held down. So both the browser AND Netbeans see
alt-down events if Netbeans is the destination app.

I tried to duplicate this behavior using NetBeans under windows and I
cannot. I put focus in an editor window (a .java source file, as it
happens), alt-tabbed to a different window (Firefox browser), then alt-
tabbed back to NB. Focus remained in the editor window and did not go
to the menu bar.

Double that.

Focus goes to the menu bar on ALT KEY_RELEASED, or maybe KEY_TYPED, but not on KEY_PRESSED.

--
DF.
.



Relevant Pages

  • Netbeans 6.1 focus-switch glitch
    ... As near as I can tell, most Windows apps focus the menu bar if alt is pressed, but ignore alt if the app is just gaining focus and alt is depressed at the time; that is, they require an alt-down event to focus the menu bar, and alt-down events are only generated if alt goes from raised to depressed while the app has focus. ... Netbeans appears to generate alt-down events if it gains focus while alt is being held down. ...
    (comp.lang.java.programmer)
  • Re: Windows Explorer menu line gone
    ... In Full Screen the Menu Bar, the Address Bar and Links can be added. ... Right click the top Toolbar and Select Menu Bar, ... Alt + V + T + M toggles the Menu Bar. ... In Internet Explorer, but not Windows Explorer, Alt + V will open the View ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows Explorer menu line gone
    ... In Full Screen the Menu Bar, the Address Bar and Links can be added. ... Right click the top Toolbar and Select Menu Bar, ... Alt + V + T + M toggles the Menu Bar. ... In Internet Explorer, but not Windows Explorer, Alt + V will open the View ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows Explorer menu line gone
    ... In Full Screen the Menu Bar, the Address Bar and Links can be added. ... Right click the top Toolbar and Select Menu Bar, ... Alt + V + T + M toggles the Menu Bar. ... In Internet Explorer, but not Windows Explorer, Alt + V will open the View ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows Explorer menu line gone
    ... In Full Screen the Menu Bar, the Address Bar and Links can be ... Right click the top Toolbar and Select Menu Bar, ... Alt + V + T will also open the Toolbars menu where you can add or remove ... In Internet Explorer, but not Windows Explorer, Alt + V will open the ...
    (microsoft.public.windowsxp.help_and_support)