Fixed displaying the current item when pressing a hotkey

This commit is contained in:
Klaus Schmidinger 2025-02-13 13:58:07 +01:00
parent 1b4233d6ad
commit 3045995bbc

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: osdbase.c 5.7 2025/02/12 21:18:53 kls Exp $ * $Id: osdbase.c 5.8 2025/02/13 13:58:07 kls Exp $
*/ */
#include "osdbase.h" #include "osdbase.h"
@ -519,8 +519,10 @@ eOSState cOsdMenu::HotKey(eKeys Key)
const char *s = item->Text(); const char *s = item->Text();
if (s && (s = skipspace(s)) != NULL) { if (s && (s = skipspace(s)) != NULL) {
if (*s == Key - k1 + '1') { if (*s == Key - k1 + '1') {
DisplayCurrent(false);
current = item->Index(); current = item->Index();
RefreshCurrent(); RefreshCurrent();
DisplayCurrent(true);
cRemote::Put(kOk, true); cRemote::Put(kOk, true);
break; break;
} }