From 88a2e3d2510379ce5fc2a2ee1291ee57d5e75156 Mon Sep 17 00:00:00 2001 From: Andreas Baierl Date: Tue, 28 Jan 2025 16:38:25 +0100 Subject: [PATCH] enable kInfo for detail view Signed-off-by: Andreas Baierl --- tvguideosd.c | 7 +++++++ tvguideosd.h | 1 + 2 files changed, 8 insertions(+) diff --git a/tvguideosd.c b/tvguideosd.c index 3dfd78c..9da6d08 100644 --- a/tvguideosd.c +++ b/tvguideosd.c @@ -431,6 +431,11 @@ eOSState cTvGuideOsd::KeyBlue(const cEvent *e) { return osContinue; } +eOSState cTvGuideOsd::KeyInfo(const cEvent *e) { + DetailView(e); + return osContinue; +} + eOSState cTvGuideOsd::KeyOk(const cEvent *e) { if (config.blueKeyMode == eBlueKeySwitch) { DetailView(e); @@ -645,6 +650,7 @@ eOSState cTvGuideOsd::ProcessKey(eKeys Key) { CloseDetailedView(); } break; + case kInfo: case kBack: CloseDetailedView(); break; @@ -679,6 +685,7 @@ eOSState cTvGuideOsd::ProcessKey(eKeys Key) { case kRed: KeyRed(); break; case kGreen: case kYellow: Key1(Key); break; + case kInfo: state = KeyInfo(activeGrid->GetEvent()); break; case kBlue: state = KeyBlue(activeGrid->GetEvent()); break; case kOk: state = KeyOk(activeGrid->GetEvent()); break; case kBack: state = osEnd; break; diff --git a/tvguideosd.h b/tvguideosd.h index 7996f4c..55d5ac2 100644 --- a/tvguideosd.h +++ b/tvguideosd.h @@ -33,6 +33,7 @@ private: void KeyRed(void); void Key1(int Key); eOSState KeyBlue(const cEvent *e = NULL); + eOSState KeyInfo(const cEvent *e = NULL); eOSState KeyOk(const cEvent *e = NULL); void NumericKey(eKeys key); void TimeJump(eKeys key); -- 2.39.5