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.
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.
Probably just needs to call associateLookup() or simiilar nonsense to bind its action map to the rest of the system's.
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.
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.
040610: Alt-Shift-O works, Ctrl-O works, Ctrl-Shift-0 works, Ctrl-Shift-O doesn't.
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
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.
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?
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.)
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.
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
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.
In current dev builds, sometimes works and sometimes does not. I'm not sure what the pattern is.
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.