| 225 | } |
| 226 | |
| 227 | CStringW CAccelerator::GetShortcutString(int id) const { // // // |
| 228 | for (const auto &x : m_pEntriesTable) { // // // |
| 229 | if (x.id == id) { |
| 230 | CStringW KeyName = GetVKeyName(x.key); |
| 231 | if (KeyName.GetLength() > 1) |
| 232 | KeyName = KeyName.Mid(0, 1).MakeUpper() + KeyName.Mid(1, KeyName.GetLength() - 1).MakeLower(); |
| 233 | if (x.mod > 0) |
| 234 | return FormattedW(L"\t%s+%s", MOD_NAMES[x.mod], (LPCWSTR)KeyName); |
| 235 | else |
| 236 | return FormattedW(L"\t%s", (LPCWSTR)KeyName); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | return L""; |
| 241 | } |
| 242 | |
| 243 | bool CAccelerator::IsKeyUsed(int nChar) const // // // |
| 244 | { |
no test coverage detected