Patch #2056 2007-06-15 23:30
pecan
Allow/Preserve Shortcut keys on Tool menu- Download
- 2056-Allow_Preserve.patch (739 bytes)
The following patch allows keybinder to preserve user shortcut keys assigned to the Tools menu.
Index: src/sdk/toolsmanager.cpp
===================================================================
--- src/sdk/toolsmanager.cpp (revision 4092)
+++ src/sdk/toolsmanager.cpp (working copy)
@@ -349,11 +349,18 @@
int ToolsManager::Configure()
{
+ CodeBlocksEvent event(cbEVT_MENUBAR_CREATE_BEGIN);
+ Manager::Get()->ProcessEvent(event);
+
ConfigureToolsDlg dlg(Manager::Get()->GetAppWindow());
PlaceWindow(&dlg);
dlg.ShowModal();
SaveTools();
BuildToolsMenu(m_Menu);
+
+ CodeBlocksEvent event2(cbEVT_MENUBAR_CREATE_END);
+ Manager::Get()->ProcessEvent(event2);
+
return 0;
} // end of Configure
History
pauliusz 2007-06-15 23:45
Maybe better place for these events is BuildToolsMenu function..?
pauliusz 2007-06-15 23:47
Sorry. Now I see that it really should be right where it is now :)
biplab 2007-06-16 02:02
Applied in rev. 4100.