Replace Ctrl -> Cmd in hints on Apple.

#7820
This commit is contained in:
David Kocik 2022-01-27 13:38:03 +01:00
parent a690f7825c
commit c22dfb8410

View File

@ -342,6 +342,9 @@ void HintDatabase::load_hints_from_file(const boost::filesystem::path& path)
//unescape text1
unescape_string_cstyle(dict["text"], fulltext);
fulltext = _utf8(fulltext);
#ifdef __apple__
fulltext = std::regex_replace(fulltext, std::regex("Ctrl"), "Cmd");
#endif //__apple__
// replace <b> and </b> for imgui markers
std::string marker_s(1, ImGui::ColorMarkerStart);
std::string marker_e(1, ImGui::ColorMarkerEnd);