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 123060

Summary: Reassigning shortcut for macro does not work
Product: editor Reporter: Jiri Prox <jiriprox>
Component: MacrosAssignee: Max Sauer <msauer>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2007-11-29 14:45:56 UTC
Product Version: NetBeans IDE Dev (Build 20071126023625)
Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b06
System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb)

Reassigning used shortcut between macros in Editor Options -> Macros does not work. The shortcut is shown for both
macros and if used in editor the old macro is invoked.

Steps to reproduce:
1) create macro m1 and assign shortcut alt-m to it
2) create macro m2
3) open Tools->Options->Editor->Macro
4) select m2 and press Set Shortcut
5) use the same shortcut as m1
-> dialog says that the short will be reassigned, but after the confirmation both macros has the same shortcut in the
table and when it is used in the editor the m1 is called

Reassigning in Options->Keymap works fine.
Comment 1 Vitezslav Stejskal 2007-12-03 10:19:31 UTC
Reprodicuble in a dev build.
Comment 2 Max Sauer 2008-03-16 20:08:08 UTC
Fixed by:
http://hg.netbeans.org/main/rev/1cd89120eee8

Comment 3 Jiri Prox 2008-05-28 14:31:20 UTC
v.