mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
rcinput: fix getKeyName for RC_none case
Origin commit data
------------------
Branch: ni/coolstream
Commit: eaec2224e1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-08-20 (Sun, 20 Aug 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
52a42f2459
commit
b6b774046d
@@ -1682,9 +1682,14 @@ const char * CRCInput::getSpecialKeyName(const unsigned int key)
|
||||
|
||||
std::string CRCInput::getKeyName(const unsigned int key)
|
||||
{
|
||||
std::string res(getKeyNameC(key & ~RC_Repeat));
|
||||
if ((key & RC_Repeat) && res != "unknown")
|
||||
res += " (long)";
|
||||
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