25 temp.Replace(
wxT(
"XCtrl+"),
wxT(
"Control+"));
30 temp.Replace(
wxT(
"RawCtrl+"),
wxT(
"Control+"));
31 temp.Replace(
wxT(
"Ctrl+"),
wxT(
"Command+"));
33 if (temp.Contains(
wxT(
"Control+"))) {
34 newkey +=
wxT(
"RawCtrl+");
37 if (temp.Contains(
wxT(
"Alt+")) || temp.Contains(
wxT(
"Option+"))) {
38 newkey +=
wxT(
"Alt+");
41 if (temp.Contains(
wxT(
"Shift+"))) {
42 newkey +=
wxT(
"Shift+");
45 if (temp.Contains(
wxT(
"Command+"))) {
46 newkey +=
wxT(
"Ctrl+");
50 newkey + temp.AfterLast(
wxT(
'+'));
58 (void)usesSpecialChars;
61 auto newkey = this->
GET();
64 if (!usesSpecialChars) {
66 newkey.Replace(
wxT(
"RawCtrl+"),
wxT(
"Control+"));
67 newkey.Replace(
wxT(
"Alt+"),
wxT(
"Option+"));
68 newkey.Replace(
wxT(
"Ctrl+"),
wxT(
"Command+"));
72 newkey.Replace(
wxT(
"Shift+"),
wxT(
"\u21e7"));
73 newkey.Replace(
wxT(
"RawCtrl+"),
'^');
74 newkey.Replace(
wxT(
"Alt+"),
wxT(
"\u2325"));
75 newkey.Replace(
wxT(
"Ctrl+"),
wxT(
"\u2318"));
const wxString & GET() const
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct...
Template generates different TaggedIdentifier classes that don't interconvert implicitly.
wxString Display(bool usesSpecialChars=false) const
NormalizedKeyString()=default