mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
rcinput: fix getKeyName for RC_none case
This commit is contained in:
committed by
Jacek Jendrzej
parent
a1a5965017
commit
4978ed7675
@@ -1678,9 +1678,14 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key)
|
||||
|
||||
std::string CRCInput::getKeyName(const unsigned int key)
|
||||
{
|
||||
std::string res(getKeyNameC(key & ~RC_Repeat));
|
||||
std::string res;
|
||||
if (key > RC_MaxRC)
|
||||
res = getKeyNameC(key); /* will only resolve RC_nokey or "unknown" */
|
||||
else {
|
||||
res = (getKeyNameC(key & ~RC_Repeat));
|
||||
if ((key & RC_Repeat) && res != "unknown")
|
||||
res += " (long)";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user