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 17005 - focus should not be stolen from the user.
Summary: focus should not be stolen from the user.
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: akemr
URL:
Keywords:
: 17809 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-26 09:20 UTC by Chris Ledantec
Modified: 2008-12-23 08:40 UTC (History)
1 user (show)

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 Chris Ledantec 2001-10-26 09:20:23 UTC
the example that resulted in this bug report:

> From: John Richardson <jrichard@zealand.mv.com>
>
> I'd like to strike up a conversation about why the output window
> steals focus when a compile completes.  This can be annoying
> when editing during a long compile.   When this occurs, I need
> to switch back to the editor (ctrl-3).  I dislike this behavior because
> it violates the following principle:  
> only move focus when the user initiates it

i agree that the focus should not be moved to the output window. and as a
general rule, the only time focus should be removed from the current window is
if a modal dialog or operation needs it.

the jlf says: '[keboard (or input) focus changes when] users designate the
window, or component within a window, that receives input. pg 111.

cL
Comment 1 _ ttran 2001-10-26 15:23:51 UTC
Alesi, I have the feeling that this is a duplicate of a bug filed
recently which has been fixed.
Comment 2 akemr 2001-10-26 15:38:26 UTC
No, it isn't duplicate.

This behaviour (focus moved to Output window after unsuccessful
compilation) is there long time in NB. I'm not sure this is DEFECT.

Maybe there are users accustomed to use 
- Compile
- if error -> hit Enter -> go to error line and correct
Comment 3 Chris Ledantec 2001-10-26 15:42:33 UTC
this from the original poster of the issue on nbui:

I checked a few IDEs including JBuilder, emacs, and VC++ 5.0.  All
of these do not switch focus when a compile is complete. 
Instead, they leave focus where it is.  Then, when the user hits the
"Next Error" shortcut, focus is brought to the first error.  "Next Error"
again, goes to the second error, and so on.   So, if a compile ends
when I'm editing, I just finish my edit and hit the "Next Error" shortcut
to find my first error.   If there is only one error, both the "Next
Error"
and "Prev Error" shortcuts both set focus to the error line in the
editor. 

i agree with the described behavior -i.e. that the focus not be
shifted even when there is an error. if there is still doubt about how
we should proceed we can take this to nbui to get more input from
other hie's.
Comment 4 akemr 2001-10-26 16:25:45 UTC
Adding Ales Novak to CC, because if we want to do this change, 
compiler should not move focus to OW.
Comment 5 akemr 2001-11-19 15:49:37 UTC
*** Issue 17809 has been marked as a duplicate of this issue. ***
Comment 6 Jan Chalupa 2001-11-27 11:52:56 UTC
Target milestone -> 3.3.1.
Comment 7 Jan Chalupa 2001-11-27 11:56:32 UTC
Target milestone -> 3.3.1.
Comment 8 Jan Chalupa 2002-01-11 14:03:17 UTC
Target milestone -> 3.4
Comment 9 Jan Chalupa 2002-01-11 14:07:23 UTC
Target milestone -> 3.4
Comment 10 Jan Chalupa 2002-01-11 14:08:31 UTC
Target milestone -> 3.4
Comment 11 Jan Chalupa 2002-01-11 14:11:21 UTC
Target milestone -> 3.4
Comment 12 akemr 2002-02-12 14:55:17 UTC
Fixed in trunk
Comment 13 Lukas Hasik 2002-03-07 09:59:51 UTC
verified in 200203070100
Comment 14 Lukas Hasik 2002-03-22 16:04:33 UTC
200203220100

after compile the focus is always in OW !
Comment 15 akemr 2002-03-28 13:23:50 UTC
Regression fixed in trunk.

Problem was in Trung's fix of #21744. Moving part of code
into new Runnable class changed meaning of *this* keyword.
Comment 16 Marian Mirilovic 2002-04-17 14:27:11 UTC
verified in [nb_dev](20020417)
Comment 17 Quality Engineering 2003-07-01 16:39:16 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 18 Quality Engineering 2008-12-23 08:40:27 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.