X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fc7a1ad1c370005d66286b586c50d49da764aed..7198c3368055d88249a338eb33b21f051f674806:/src/common/accelcmn.cpp?ds=inline diff --git a/src/common/accelcmn.cpp b/src/common/accelcmn.cpp index 5df35dc39f..f52fc05de3 100644 --- a/src/common/accelcmn.cpp +++ b/src/common/accelcmn.cpp @@ -26,13 +26,15 @@ #if wxUSE_ACCEL #ifndef WX_PRECOMP + #include "wx/accel.h" #include "wx/string.h" #include "wx/intl.h" #include "wx/log.h" - #include "wx/accel.h" #include "wx/crt.h" #endif //WX_PRECOMP +wxAcceleratorTable wxNullAcceleratorTable; + // ============================================================================ // wxAcceleratorEntry implementation // ============================================================================ @@ -305,7 +307,7 @@ wxString wxAcceleratorEntry::ToString() const int flags = GetFlags(); if ( flags & wxACCEL_ALT ) text += _("Alt+"); - if ( flags & wxACCEL_CTRL ) + if ( flags & (wxACCEL_CTRL | wxACCEL_CMD) ) text += _("Ctrl+"); if ( flags & wxACCEL_SHIFT ) text += _("Shift+");