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 54284 - It is impossible to hide VCS Output window by keyboard
Summary: It is impossible to hide VCS Output window by keyboard
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: A11Y, RANDOM
Depends on:
Blocks:
 
Reported: 2005-02-01 14:25 UTC by Marian Mirilovic
Modified: 2006-03-24 12:59 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 Marian Mirilovic 2005-02-01 14:25:54 UTC
NB4.1 (200501311900), JDK1.5.0_03 (ea)

Open VCS Output by keyboard CTRL + 9, and try to
hide the same window by CTRL + Bakcspace 
-> it isn't possible ...
Comment 1 _ pkuzel 2005-02-01 15:13:20 UTC
The VCS code does not catch the shortcut. Is not it window system
responsibility?

Current behaviour is that the shortcut closes random window or deletes
character in editor - probably depends on recently-1 focused component.
Comment 2 _ pkuzel 2005-02-01 15:20:24 UTC
WindowSystem probadly does not handle situation when selected
topcomponent cannot accept focus. Visually it's selected but focus
remains in previous component (unselected now). Unfortunately Ctrl+BS
is incorrectly applied to focused component instead to selected component.
Comment 3 Milos Kleint 2005-02-02 06:35:57 UTC
Well, Peter, it's not only our windowsystem, it's swing in general
which processes the keyboard events according to the focus.
Comment 4 David Simonek 2005-02-03 13:12:31 UTC
Petr, for Ctrl+Backspace to work, component has to accept focus. As
Milos mentioned, there is no way how to provide system wide action
like Ctrl+Backspace for component that does not accept focus.
Please fix the code in your component as it is common in other places,
I just fixed similar issue in navigator, see 54276, fix is simple -
just setFocusable(true) on whole component when it is empty or in
similar state.
Comment 5 _ pkuzel 2005-02-03 13:37:54 UTC
It helps, sometimes...
Comment 6 _ pkuzel 2005-02-03 13:51:26 UTC
Unconditional invocation in constructor works.

CommandOutputTopComponent.java
new revision: 1.22
Comment 7 _ pkuzel 2005-02-03 14:46:25 UTC
CommandOutputTopComponent.java
new revision: 1.23
Comment 8 _ pkuzel 2005-02-03 15:01:35 UTC
CommandOutputTopComponent.java
new revision: 1.24
Comment 9 Marian Mirilovic 2005-02-07 21:29:02 UTC
verified in NB 4.1 (200502071900)