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.
The restore button inside Keymap section of new OD does not work as expected: - it does not restore overriden shortcuts (this is true only for some elements, ie. 'Cut' action) - it does not remove newly defined ones Steps to reproduce ------------------- 1) Run the IDE with fresh userdir 2) Open a project 3) Open Tools|Options 4) Goto Keymaps 5) Add some new shortcuts, remove some 6) Confirm OD 7) Invoke Tools|Options|Keymap again 8) Press Restore ---> Newly added shortcuts won't be removed ---> Some of the overridden ones are not restored [051114 ~11:30, JDK 1.5.0_05, solaris 10/sparc]
reproducible, there are some implementation problems
Too late to fix in nb5.0.
Partially fixed. Unfortunately global shortcuts (those under /Keymaps and /Shortcuts) still do not support reverting. Checking in core/options/keymap/src/org/netbeans/modules/options/keymap/KeymapModel.java; /cvs/core/options/keymap/src/org/netbeans/modules/options/keymap/KeymapModel.java,v <-- KeymapModel.java new revision: 1.4; previous revision: 1.3 done Checking in core/options/keymap/src/org/netbeans/modules/options/keymap/LayersBridge.java; /cvs/core/options/keymap/src/org/netbeans/modules/options/keymap/LayersBridge.java,v <-- LayersBridge.java new revision: 1.4; previous revision: 1.3 done Checking in core/options/keymap/src/org/netbeans/core/options/keymap/spi/KeymapManager.java; /cvs/core/options/keymap/src/org/netbeans/core/options/keymap/spi/KeymapManager.java,v <-- KeymapManager.java new revision: 1.3; previous revision: 1.2 done Checking in editor/options/src/org/netbeans/modules/options/editor/keymap/EditorBridge.java; /cvs/editor/options/src/org/netbeans/modules/options/editor/keymap/EditorBridge.java,v <-- EditorBridge.java new revision: 1.5; previous revision: 1.4 done
Issue #90768 is a duplicate of this one, right?
*** Issue 90768 has been marked as a duplicate of this issue. ***
Don't miss the attachment I made to #90768 but I guess you know better ;-)
Works for me. I have tested this issue with Copy, Cut, Clear Document Bookmarks, and given usecase is not reproducible for me on 080213. So it looks like this issue is already fixed.
Well, I'm not sure how you tested it, but it doesn't seem to be working in my dev build. I tried with Edit -> Cut action, removed CUT shortcut and added ctrl+alt+shift+H. Following the steps I was not able to restore the shortcuts for that action. IIRC the LayerBridge does not implement restore, because it's not easy to do so for global shortcuts folders. Yarda once told me that there is a trick in our system filesystem that allows deleting user changes and restoring the state from bundled module layers. We could possibly use it, but I'm not sure about details.
Hmm, it looks like this is working now in current dev builds. Perhaps fixed by some other fixes in the keymaps panel.