Skip to content

Commit 7fa736f

Browse files
TwolDEYour Name
authored andcommitted
[actionmap] handle hdmi input on Power restart
On restart after pressing remote Power button some TV's send an input command key from Hdmi-CEC ( 139) that Action.cpp handles by displaying Menu on screen (cherry picked from commit cd1cbdc542626751c976a6cc18f2c1bb1fa78ce8)
1 parent 6f37d9c commit 7fa736f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/actions/action.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ void eActionMap::keyPressed(const std::string &device, int key, int flags)
223223
{
224224
//eDebug("[eActionMap] key from %s: %d %d", device.c_str(), key, flags);
225225

226+
if (!strcmp(device.c_str(), "Hdmi-CEC")) // Bounce HDMI-CEC
227+
{
228+
eDebug("[eActionMap] bounce HDMI input key from %s: %d %d", device.c_str(), key, flags);
229+
return;
230+
}
226231
// Check for remotes that need key translations
227232
std::map<std::string, eDeviceBinding>::iterator r = m_rcDevices.find(device);
228233
if (r != m_rcDevices.end())

0 commit comments

Comments
 (0)