mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-24 19:27:27 +00:00
Use 'contains' method
This commit is contained in:
parent
18ac8bf405
commit
9fa4eb9aab
9 changed files with 12 additions and 14 deletions
|
@ -179,7 +179,7 @@ std::string KeycodeToName(const CGKeyCode keycode)
|
|||
{kVK_RightOption, "Right Alt"},
|
||||
};
|
||||
|
||||
if (named_keys.find(keycode) != named_keys.end())
|
||||
if (named_keys.contains(keycode))
|
||||
return named_keys.at(keycode);
|
||||
else
|
||||
return "Key " + std::to_string(keycode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue