Hi Pecan,
I've prepared a fix for the annoying Edit-(Cut/Copy/Paste) bug. The fix is as follows.
Index: src/plugins/contrib/keybinder/keybinder.h
===================================================================
--- src/plugins/contrib/keybinder/keybinder.h (revision 3915)
+++ src/plugins/contrib/keybinder/keybinder.h (working copy)
@@ -319,6 +319,10 @@
//! Adds the given key binding to this command.
void AddShortcut(const wxKeyBind &key, bool updateMnu=true) {
if (m_nShortcuts >= wxCMD_MAX_SHORTCUTS) return;
+ // Don't add the shortcut if it has been assigned
+ for (int i = 0; i < m_nShortcuts; ++i)
+ if (m_keyShortcut[i].Match(key))
+ return;
m_keyShortcut[m_nShortcuts++] = key;
if (updateMnu) Update();
}
This prevents wxKeyBinder from duplicating shortcut. The patch works. But I'm not sure whether this would break other parts or not. Please have a look at it.
If you find it OK, then please apply it. I would be offline after this post, so I won't be able to reply you.
Patch is also attached with this post.
Best Regards,
Biplab :)
[attachment deleted by admin]