| 217 | } |
| 218 | |
| 219 | std::optional<Key> Key::FromString(const std::string& s) |
| 220 | { |
| 221 | if (auto pDesc = Registry::Get().LookupText(s)) |
| 222 | { |
| 223 | return Key{ pDesc->code }; |
| 224 | } |
| 225 | return {}; |
| 226 | } |
| 227 | |
| 228 | std::optional<Key> Key::FromPlatformCode(uint32_t p) |
| 229 | { |
nothing calls this directly
no test coverage detected