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 15123 - cannot type braces { } in source editor
Summary: cannot type braces { } in source editor
Status: CLOSED DUPLICATE of bug 11477
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-04 14:42 UTC by Jakob Spies
Modified: 2007-11-05 13:44 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 Jakob Spies 2001-09-04 14:42:33 UTC
NetBeans build # 98

With german keyboard layout, an opening brace '{' is produced by typing Option-8. This key combination does not work in the NetBeans source editor, it simply has no effect. This happens with normal and Aqua look and feel. Even switching to U.S. keyboard layout does not enable me to type braces. As this makes NetBeans unusable for Java development, I assign this bug the highest priority.

Typing braces works fine in other Swing-based text editors like that of Metamata 2.0.

I am using a Macintosh PowerBook G3 (400 MHz) with Mac OS X 10.0.4, built-in JDK 1.3.0.

The test application JEP produces the following (seemingly correct) console output when I type Opt-8:

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=56,keyChar='{',modifiers=Alt] on javax.swing.JEditorPane[,0,0,500x478,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@302e7a,flags=1200,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.SystemColor[i=13],disabledTextColor=java.awt.SystemColor[i=16],editable=true,margin=,selectedTextColor=java.awt.SystemColor[i=15],selectionColor=java.awt.SystemColor[i=14],kit=javax.swing.JEditorPane$PlainEditorKit@1d6096,typeHandlers=]
java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyChar='{',modifiers=Alt] on javax.swing.JEditorPane[,0,0,500x478,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@302e7a,flags=1200,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.SystemColor[i=13],disabledTextColor=java.awt.SystemColor[i=16],editable=true,margin=,selectedTextColor=java.awt.SystemColor[i=15],selectionColor=java.awt.SystemColor[i=14],kit=javax.swing.JEditorPane$PlainEditorKit@1d6096,typeHandlers=]
java.awt.event.KeyEvent[KEY_RELEASED,keyCode=56,keyChar='{',modifiers=Alt] on javax.swing.JEditorPane[,0,0,500x478,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@302e7a,flags=1200,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.SystemColor[i=13],disabledTextColor=java.awt.SystemColor[i=16],editable=true,margin=,selectedTextColor=java.awt.SystemColor[i=15],selectionColor=java.awt.SystemColor[i=14],kit=javax.swing.JEditorPane$PlainEditorKit@1d6096,typeHandlers=]
Comment 1 Jan Lahoda 2001-09-04 14:51:32 UTC
So, this is another bug regarding the keyboard (there are quite strong
filters as workarounds for different JDKs).
I think that events you grabbed are not correct (there is "Alt"
modifier, which maybe should not be here, I don't know).
For this time (till this bug will be fixed), you can define macros for
'{' and '}' (under english keyboard) and map them to Alt-{ and Alt-}
(under german keyboard). Than it should work for you as in other
editors. I could create the macros for you (or provide more specific
list of steps), but final mapping will have to be done on your
instalation.
Comment 2 Jan Lahoda 2001-09-04 15:04:03 UTC
And, sorry, but there exist workaround (it is not trivial to do, but
when you will, it will be transparent for you), so I think this bug
should not have P1 priority (but I hope it will be fixed soon).
Comment 3 Tomas Hurka 2001-09-19 12:54:14 UTC

*** This issue has been marked as a duplicate of 11477 ***
Comment 4 Quality Engineering 2003-06-30 18:03:22 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-06-30 18:09:35 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.