X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b4f9fd2af735fd09254c1caf88f51a0ed5e124..b53aea81d2e102224b452ef5bf7aee1132f37c6f:/src/common/ctrlcmn.cpp diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index 1897047aa0..8cb01a3adb 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -159,6 +159,14 @@ wxString wxControlBase::RemoveMnemonics(const wxString& str) return wxStripMenuCodes(str, wxStrip_Mnemonics); } +/* static */ +wxString wxControlBase::EscapeMnemonics(const wxString& text) +{ + wxString label(text); + label.Replace("&", "&&"); + return label; +} + /* static */ int wxControlBase::FindAccelIndex(const wxString& label, wxString *labelOnly) {