mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-30 14:17:56 +08:00
15 lines
350 B
C++
15 lines
350 B
C++
|
#include "pch.h"
|
||
|
#include "LayoutMap.h"
|
||
|
|
||
|
std::wstring LayoutMap::GetKeyName(DWORD key)
|
||
|
{
|
||
|
std::wstring result = L"Undefined";
|
||
|
std::lock_guard<std::mutex> lock(keyboardLayoutMap_mutex);
|
||
|
auto it = keyboardLayoutMap.find(key);
|
||
|
if (it != keyboardLayoutMap.end())
|
||
|
{
|
||
|
result = it->second;
|
||
|
}
|
||
|
return result;
|
||
|
}
|