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 44249 - OW2 swallows Ctrl-Shift-O
Summary: OW2 swallows Ctrl-Shift-O
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2004-06-02 22:55 UTC by Jesse Glick
Modified: 2008-12-22 14:48 UTC (History)
3 users (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 Jesse Glick 2004-06-02 22:55:14 UTC
Dev build. E.g. Alt-Shift-O, Ctrl-Shift-O, etc. do
nothing when OW2 has focus. Clicking on some other
window makes these keystrokes work.
Comment 1 _ tboudreau 2004-06-03 01:25:17 UTC
Probably just needs to call associateLookup() or simiilar nonsense to bind its action map to 
the rest of the system's.
Comment 2 Jesse Glick 2004-06-03 22:41:32 UTC
associateLookup()? I don't think so... just make sure you are using
ActionMap (not raw key listeners etc.) and don't include bindings you
are not using, and the key event processor should delegate to your
TC's action map automatically for things you bind, and otherwise use
the global mapping. At least as I understand it, which is not much.
Ask Yarda perhaps.
Comment 3 _ tboudreau 2004-06-11 04:03:34 UTC
Just tried this on RH 8, GTK L&F, etc.  Alt-Shift-O, etc. works fine,
including giving focus by means of Window | Output.  Can't find any
key combination that should work which doesn't work.
Comment 4 Jesse Glick 2004-06-11 04:42:09 UTC
040610: Alt-Shift-O works, Ctrl-O works, Ctrl-Shift-0 works,
Ctrl-Shift-O doesn't.
Comment 5 _ ttran 2004-06-17 00:46:59 UTC
just curious why OW2 swallows any keystrokes?  I can imagine it has
effects on which node is the activated node but otherwise there should
be no magic
Comment 6 Jesse Glick 2004-06-17 01:00:59 UTC
I have no idea, but this one keystroke does not work when OW2 has
focus; it works when any other window has focus that I know of.
Comment 7 _ tboudreau 2004-06-17 11:33:54 UTC
It's not doing anything special with keystrokes, just whatever
JEditorPane does (I would rather expect it to consume most
keystrokes).  Maybe our editor does something special to make them work?
Comment 8 Jesse Glick 2004-06-17 16:43:07 UTC
You don't understand - *all* other windows pass Ctrl-Shift-O, even
when no window is showing. It is a global keybinding. Nothing to do
with the editor window AFAIK. Only when the OW2 has focus does it not
work. This is 100% reproducible for me and has been for a while. (GTK,
1.5.0 b55.)
Comment 9 _ tboudreau 2004-06-17 23:29:07 UTC
I do understand - but I'm not doing anything special when it comes to
key handling there, so I'm guessing JEditorPane is.  I think the only
other use of JEditorPane in the IDE is in the editor itself.

No doubt solvable.
Comment 10 _ tboudreau 2004-06-27 02:46:23 UTC
Fixed. Explicitly setting the editor kit was causing its keymap/action
map to be replaced.


Checking in src/org/netbeans/core/output2/OutputPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/OutputPane.java,v  <--
 OutputPane.java
new revision: 1.4; previous revision: 1.3
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/core/output2/ui/AbstractOutputPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java,v
 <--  AbstractOutputPane.java
new revision: 1.9; previous revision: 1.8
done
Comment 11 Marian Mirilovic 2005-12-20 15:48:03 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.
Comment 12 Jesse Glick 2008-08-01 16:46:47 UTC
In current dev builds, sometimes works and sometimes does not. I'm not sure what the pattern is.
Comment 13 _ tboudreau 2008-08-01 17:15:02 UTC
IIRC, there may be two places where the editor kit gets replaced (I think if the output window is cleared, or similar);  not sure if both places were addressed in 
the fix from '04.