Skip to content

Commit

Permalink
Show the id of unknown mapped keys in the UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Oct 31, 2015
1 parent 89d0c77 commit c84f0e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Common/KeyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,7 @@ static std::string FindName(int key, const KeyMap_IntStrPair list[], size_t size
for (size_t i = 0; i < size; i++)
if (list[i].key == key)
return list[i].name;

return unknown_key_name;
return StringFromFormat("%02x?", key);
}

std::string GetKeyName(int keyCode) {
Expand Down

0 comments on commit c84f0e6

Please sign in to comment.