summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-02-15 12:43:25 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-02-15 12:43:25 +0100
commit0238234c52eee5e7ef3642801ace30c7d5bd1a19 (patch)
tree017ec7cfb591314a3fd816b0072e57faa53fe817 /remote.c
parent8b2f500d2a3180b0c038edcb81dcfb98fb6d2b7a (diff)
downloadvdr-0238234c52eee5e7ef3642801ace30c7d5bd1a19.tar.gz
vdr-0238234c52eee5e7ef3642801ace30c7d5bd1a19.tar.bz2
Fixed learning keyboard remote control codes
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index f9349243..5cb2ccb8 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 3.1 2013/12/25 12:45:43 kls Exp $
+ * $Id: remote.c 3.2 2014/02/15 12:40:39 kls Exp $
*/
#include "remote.h"
@@ -298,7 +298,7 @@ int cKbdRemote::MapCodeToFunc(uint64_t Code)
void cKbdRemote::PutKey(uint64_t Code, bool Repeat, bool Release)
{
- if (rawMode || !Put(Code, Repeat, Release)) {
+ if (rawMode || (!Put(Code, Repeat, Release) && !IsLearning())) {
if (int func = MapCodeToFunc(Code))
Put(KBDKEY(func), Repeat, Release);
}