projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed compilation ambiguity between different forms of ...WithUndo functions.
[wxWidgets.git]
/
src
/
osx
/
cocoa
/
menuitem.mm
diff --git
a/src/osx/cocoa/menuitem.mm
b/src/osx/cocoa/menuitem.mm
index 543b64f321fa090b1b8ab05a58531b8c92a09e4a..0c6c930e32d91c516851e6c8ad00452e127c3b3d 100644
(file)
--- a/
src/osx/cocoa/menuitem.mm
+++ b/
src/osx/cocoa/menuitem.mm
@@
-33,8
+33,11
@@
struct Mapping
Mapping sActionToWXMapping[] =
{
Mapping sActionToWXMapping[] =
{
+// as we don't have NSUndoManager support we must not use the native actions
+#if 0
{ wxID_UNDO, @selector(undo:) },
{ wxID_REDO, @selector(redo:) },
{ wxID_UNDO, @selector(undo:) },
{ wxID_REDO, @selector(redo:) },
+#endif
{ wxID_CUT, @selector(cut:) },
{ wxID_COPY, @selector(copy:) },
{ wxID_PASTE, @selector(paste:) },
{ wxID_CUT, @selector(cut:) },
{ wxID_COPY, @selector(copy:) },
{ wxID_PASTE, @selector(paste:) },
@@
-137,6
+140,9
@@
void wxMacCocoaMenuItemSetAccelerator( NSMenuItem* menuItem, wxAcceleratorEntry*
if (entry->GetFlags() & wxACCEL_CTRL)
modifiers |= NSCommandKeyMask;
if (entry->GetFlags() & wxACCEL_CTRL)
modifiers |= NSCommandKeyMask;
+ if (entry->GetFlags() & wxACCEL_RAW_CTRL)
+ modifiers |= NSControlKeyMask;
+
if (entry->GetFlags() & wxACCEL_ALT)
modifiers |= NSAlternateKeyMask ;
if (entry->GetFlags() & wxACCEL_ALT)
modifiers |= NSAlternateKeyMask ;