This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 159255 - Various regressions in focus handling in OW
Summary: Various regressions in focus handling in OW
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: t_h
URL:
Keywords: A11Y, REGRESSION
Depends on:
Blocks:
 
Reported: 2009-02-26 20:23 UTC by Jesse Glick
Modified: 2009-03-04 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-02-26 20:23:19 UTC
Keyboard focus and visibility handling in the OW is markedly worse than in 6.5. There seem to have been several
regressions introduced in sequence:

1. Say there are two inactive tabs, A and B. A is visible. An Ant build is run which reopens B with a new title, in
bold. A is left fronted, whereas in previous releases B would be shown.

2. Very frequently the OW in sliding mode gets focus but is not visible. So the editor window takes up the full screen
but is deactivated. Pressing Ctrl-4 does not work. You need to press Ctrl-0 Ctrl-4 to show the OW, or Ctrl-0 to give
focus to the editor.

3. Starting only in recent builds, I usually cannot get KB focus in the OW using the KB. Pressing Ctrl-4 does not help;
no caret is shown. I have to click with the mouse to get KB focus.
Comment 1 t_h 2009-02-28 11:57:02 UTC
Fixed 3. in 84358fbdfe5d. I am not able to reproduce 1. and 2., any way to reproduce?
Comment 2 t_h 2009-03-02 14:23:41 UTC
Maybe 2. is same problem as issue 159356
Comment 3 Jesse Glick 2009-03-02 20:25:22 UTC
I think #1 might have to do with the fact that the mercurial module does not "close" the OW tab it uses to print e.g.
commit logs, leaving it bold. So if A is a Hg tab and B is an Ant tab, with A active and B inactive, running a new Ant
build makes B's tab bold but does not front it.

Issue #159356 does sound like my #2, not sure.
Comment 4 Quality Engineering 2009-03-02 20:54:59 UTC
Integrated into 'main-golden', will be available in build *200903021401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/84358fbdfe5d
User: Tomas Holy <t_h@netbeans.org>
Log: #159255: focus should be transfered on requestActive()
Comment 5 t_h 2009-03-03 11:14:14 UTC
1. fixed in fc401cb48216
Comment 6 Jesse Glick 2009-03-03 16:17:06 UTC
I hope that is the right fix. We do not want to give focus to the new Ant tab unless and until there is a compilation
error; but we would want to make it visible. I cannot keep track of what the different methods in
InputOutput/OutputWriter actually do in terms of window system events.

BTW please write e.g.

core-main #fc401cb48216

for use from

http://wiki.netbeans.org/BrowserTools#section-BrowserTools-LinkToMercurialChangesets
Comment 7 Quality Engineering 2009-03-04 09:03:45 UTC
Integrated into 'main-golden', will be available in build *200903040201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fc401cb48216
User: Tomas Holy <t_h@netbeans.org>
Log: #159255: explicitly select tab for ant target