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.
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 ...
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.
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.
Well, Peter, it's not only our windowsystem, it's swing in general which processes the keyboard events according to the focus.
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.
It helps, sometimes...
Unconditional invocation in constructor works. CommandOutputTopComponent.java new revision: 1.22
CommandOutputTopComponent.java new revision: 1.23
CommandOutputTopComponent.java new revision: 1.24
verified in NB 4.1 (200502071900)