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.
Solaris 10 x86 update 1 (Generic_118844-26 i86pc i386 i86pc) French Locale (fr_FR) NetBeans 5.0 JDK 1.5.0_06 In the text editor, on a French keyboard (seems like others are also experiencing this: German, Norwegian, ...), the user cannot access the '@' or '{' symbols which require the use of the special 'Alt Gr' key. This modifier key is being ignored (character appearing is as if no modifier key was pressed). -> Using 1.5.0_06, this also fails using the simple Notepad swing sample (part of the JDK). -> Using 1.6.0 build 77, this is fixed for the Notepad sample, but still fails using NetBeans 5.0 running this same 1.6b77 jdk version. Note this has some similarities with BugId 40467.
NetBeans 4.1, Creator 2, Notepad all work fine with JDK 1.5.0_06 or latest Java 6 JDK with properly configured Xorg. Keyboard part of 'xorg.conf' (added all 'Option' lines): Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc102" Option "XkbLayout" "fr" EndSection NetBeans 5.0 (and 5.5) also work fine with JDK 1.5.0_06. But still not luck with NetBeans 5.0+ running on latest mustang JDK (build 77) Seems like the netbeans workaround used for Java 5 is no longer valid for Java 6. Leaving status as NEW.
netbeans 4.1 works fine with both 1.5 and java 6 build 77...
A good chance this was broken when multi-key keybinding support was added for 5.0, perhaps. Also check org/netbeans/core/windows/ShortcutKeyAndMenuEventProcessor - it has some platform specific hacks for, e.g. some versions of linux passing Alt as Meta...could be affecting it.
needs evaluation
I've checked the DefaultEditorKit.DefaultKeyTypedAction and it seems that there are no changes against the previous version but there may be changes in the key events between the JDK versions (modifiers etc.; it happened several times in the past already). I've found two issues in JDK bug database that might be related: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4115509 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4835748 Also could you please download and run KeyEventDebug.jar from http://editor.netbeans.org/servlets/ProjectDocumentList and simulate the problem and grab the output and attach it to this issue? Thanks.
I've tested this on Solaris and for 1.6.0 b104 the special character works for both: notepad example and whole IDE (5.0 fcs) For the 1.5.0_10 the behaviour is as described in first post.
Jiri, can you also try the workaround with xorg.conf for JDK 1.5.0_10?
the problem looks similar to AWT bug #6253172 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6253172) If it is not reproducible with the following XKB options it is most likely the same problem: Option "XkbLayout" "us,fr" вместо их чистого французского Option "XkbLayout" "fr" и добавить что-нибудь вроде Option "XkbOptions" "grp:caps_toggle,grp_led:caps"
Cannot make it work with any xconf.org configuration listed in this issue. (JDK 1.5.0_10, NB 5.0 fcs) Workaround is to switch from Xorg to Xsun, it works fine there (JDK 1.5.0_10, NB 5.0fcs, NB 5.5 Fcs, german layout)
Switching between Xsun and Xorg is quite simply if everithing is installed and configured well. It is enough to run kdmconfig as super user and follow the instructions on the screen. It is also possible to do basic configuration for Xsun there, as setting keyboard layout.
Just realized that comment about AWT bug has some Russian text :(copy-paste :) So, here is a translated version: the problem looks similar to AWT bug #6253172 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6253172) If it is not reproducible with the following XKB options it is most likely the same problem: try to use Option "XkbLayout" "us,fr" instead of pure French layout you have (Option "XkbLayout" "fr" ) and you will also need to add something like this to switch layouts: Option "XkbOptions" "grp:caps_toggle,grp_led:caps"
From the comments above I see this was not working on : - 1.5.0_06 - 1.6.0 build 77 Jiri approved that it works fine in 1.6.0 b104, but it still doesn't work 1.5.0_10 until user switches from Xorg to Xsun. There is also reported JDK issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6253172 Am I right ? If so, I don't think we can do anything on our side, could we ?
No, it does not seem to be Netbeans problem. Thanks
*** Issue 131391 has been marked as a duplicate of this issue. ***
*** Issue 157461 has been marked as a duplicate of this issue. ***