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.
While researching Issue 34798 and others (TBD), I saw shortcuts that I had removed reappear. To reproduce: 1) "File" -> "New" -> "Ant Build Scripts" -> "ShortCut to Target" 2) Check only "Add a keyboard shortcut" in the next screen 3) Specify the target of an Ant build.xml file 4) In the next screen specify a shortcut key combination (e.g. Ctrl-B) and remember it 5) Finish the "New Wizard - Shortcut to Target" dialog 6) "Tools" -> "Keyboard Shortcuts" 7) Click on the "Shortcuts" button at the top 8) Find your shortcut key, select it, click the "Remove" button, then the "Close" button 9) Repeat steps 6 and 7 above 10) Notice that the shortcut you "removed" is still there.
See also issue 34801.
I see in org.netbeans.core.ShortcutsFolder.applyChanges: if (r.add) { if (InstanceDataObject.find (f, r.instanceName (), r.instanceClass ()) == null) { InstanceDataObject.create(f, r.instanceName(), r.instanceClass()); } } else { InstanceDataObject.remove(f, r.instanceName(), r.instanceClass()); } which assumes all shortcuts are *.instance files. Of course this won't work for Ant scripts at all. Even shabbier, it doesn't check the return value to see if it did anything and to warn you when it doesn't. Workaround: right-click Filesystems, choose Customize. Click Default System, set Hidden to False. Close dialog. Under Filesystems -> Default System -> Shortcuts, find the unwanted one. Delete it.
*** Issue 34801 has been marked as a duplicate of this issue. ***
Planned for promo-D.
I already have similiar bug 49597.
cvsgrep -i X.diff | xargs runsocks cvs ci -m "#34800: Now the removal of shortcuts checks the objects name and does not use just InstanceDataObject.remove" Checking in core/src/org/netbeans/core/ShortcutsFolder.java; /cvs/core/src/org/netbeans/core/ShortcutsFolder.java,v <-- ShortcutsFolder.java new revision: 1.21; previous revision: 1.20 done Processing log script arguments... More commits to come... Checking in core/test/unit/src/org/netbeans/core/ShortcutsFolderTest.java; /cvs/core/test/unit/src/org/netbeans/core/ShortcutsFolderTest.java,v <-- ShortcutsFolderTest.java new revision: 1.5; previous revision: 1.4 done Processing log script arguments... More commits to come... Checking in openide/src/org/openide/filesystems/MemoryFileSystem.java; /cvs/openide/src/org/openide/filesystems/MemoryFileSystem.java,v <-- MemoryFileSystem.java new revision: 1.3; previous revision: 1.2
*** Issue 46591 has been marked as a duplicate of this issue. ***
closing
This issue had *2 votes* before move to platform component