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.
NB.dev(continual build 12/07), JDK 6.0(b42) Steps to reproduce: - run IDE - open project - write some code and select it - press Ctrl+Alt+S (Surround with ...) or Ctrl+Alt+F (Find usages ..) -> code is replaced by "S" or "F" ! I found out that it works well with JDK 5.0_04 as well as all other combinations of shortcuts work (Alt+Shift, Ctrl+Shift). All shortcuts work without any problems in Views (Project, Files, ...) Probably it's a JDK bug, but we need to adress it before releasing JDK6.0.
Mariane, it works for me under WinXP with b42. On which OS does it fail?
*** Issue 60302 has been marked as a duplicate of this issue. ***
Linux RH 9 / Gnome
FC3 + Gnome for me. The shortcuts work, but they also insert the (unmodified) letter in the editor window.
We should examine the behavior by using instructions in http://editor.netbeans.org/doc/KeyboardIssues/KeyboardIssues.html Reassigning to Pavel.
The character is written before the action is called. Bug is mostly reproducible, but sometimes it works correctly.
The difference is in key event. When you type ctrl+alt+s, you will get different value in keyChar attribute: JDK1.5: java.awt.event.KeyEvent[keyChar='s'] JDK1.6: java.awt.event.KeyEvent[keyChar='^S'] All other attributes in event is the same, i.e. modifiers are Ctrl+Alt etc.
Sounds like a Mustang bug to me - will you file it?
Jano will suggest better shortcuts. We should not use Ctrl+Alt shortcuts as default, because Ctrl+Alt is used for writing local characters. There are still possibility that user will redefine shortcuts. One solution is forbid Ctrl+Alt shortcut.
I will file the bug to Mustang and will add reference here.
Romane, can you add the reference to Mustang bug? Thanks.
Sorry I forgot, here it is: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6320676 It will take some time before it appears on web.
Jano, can you, please, suggest another keyboard shortcuts?
New shortcuts: Find Usages: Alt-Shift-U (Ctrl-Shift-U on Mac) Surround with: Alt-Shift-W (Ctrl-Shift-W on Mac) For release after 5.0 we'll do a complete revamp of NetBeans shortcuts. Please talk to Hanz, as I already told him to change the shortcuts for 5.0. So it might be already done. Thanks.
Changed shortcuts. Checking in refactoring/src/org/netbeans/modules/refactoring/resources/mf-layer.xml; /cvs/refactoring/src/org/netbeans/modules/refactoring/resources/mf-layer.xml,v <-- mf-layer.xml new revision: 1.31; previous revision: 1.30 done Checking in java/editor/src/org/netbeans/modules/java/editor/resources/DefaultKeyBindings.xml; /cvs/java/editor/src/org/netbeans/modules/java/editor/resources/DefaultKeyBindings.xml,v <-- DefaultKeyBindings.xml new revision: 1.4; previous revision: 1.3 done Lowering priority as it is reproducible only with Tiger with user redefined shortcuts.
*** Issue 65663 has been marked as a duplicate of this issue. ***
This is IMHO fixed by fix of issue 68209.
verified in NB 5.0 - RC1