Re: Netbeans 6.1 focus-switch glitch



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

On further investigation, it looks like the focus is going to the menu bar when initially switching away from Netbeans. Perhaps normal app behavior is to toggle focus back from menubar if tab is hit while alt still depressed. But it's not always doing so with Netbeans.

It seems to be intermittent. In fact, it looks like if you
push alt
push tab
release tab
release alt
when switching away, Netbeans behaves normally, but if you
push alt
push tab
release alt
release tab
Netbeans transfers focus to the menu bar on alt release, then Windows switches task on tab release. (In the first case, Windows switches task on tab release, and when alt release occurs Netbeans doesn't see it as it no longer has keyboard focus at all.)

I can confirm that Thunderbird and other Windows apps don't focus the menu bar if tab is pushed after alt is pushed and before alt is released, only if alt is released without any tab push having occurred since alt was last pushed down.

I, and probably many users, push alt, push tab, and then release both nearly simultaneously, so about 50% of the time Netbeans editor panes will lose input focus.
.



Relevant Pages

  • Re: Netbeans 6.1 focus-switch glitch
    ... push alt ... release alt ... release tab ... Netbeans transfers focus to the menu bar on alt release, then Windows switches task on tab release. ...
    (comp.lang.java.programmer)
  • Tweak Intellipoint to allow any keystroke (such as Alt + Tab)
    ... I found many posts asking for way to set Intellipoint to use Alt + Tab, ... Then look up the Hexadecimal ASCII Code for the keystroke you ...
    (microsoft.public.windowsxp.hardware)
  • 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: Switching between open Excel workbooks using alt + tab
    ... It's Excel 2003. ... I press and hold alt, then when I press tab, the preview window of active ... When I release the alt key the program that was currently highlighted becomes ...
    (microsoft.public.windowsxp.basics)
  • minimising window problem
    ... >We are also seeing this problem on a Dell Precision. ... >are able to switch between software by using ALT + TAB, ... >>manager or restarting thr program. ...
    (microsoft.public.windowsxp.configuration_manage)