summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-14 10:54:13 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-14 10:54:13 +0100
commit9efe1f9479e08dccc6fb3d1ac7b0bc4c2fd3e531 (patch)
treea760bd785695726fb84920f14ca5189c1e48b3a0 /vdr.c
parentdef74b48c4786b30b3c17edc38ce568ab68a333e (diff)
downloadvdr-9efe1f9479e08dccc6fb3d1ac7b0bc4c2fd3e531.tar.gz
vdr-9efe1f9479e08dccc6fb3d1ac7b0bc4c2fd3e531.tar.bz2
Key macros can now be defined for all non-modeless keys
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/vdr.c b/vdr.c
index b9da3fb4..906c4219 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.236 2006/01/13 16:16:32 kls Exp $
+ * $Id: vdr.c 1.237 2006/01/14 10:20:50 kls Exp $
*/
#include <getopt.h>
@@ -984,6 +984,10 @@ int main(int argc, char *argv[])
}
else {
// Key functions in "normal" viewing mode:
+ if (KeyMacros.Get(key)) {
+ cRemote::PutMacro(key);
+ key = kNone;
+ }
switch (key) {
// Toggle channels:
case k0: {
@@ -1019,11 +1023,6 @@ int main(int argc, char *argv[])
cControl::Launch(new cReplayControl);
}
break;
- // Key macros:
- case kRed:
- case kGreen:
- case kYellow:
- case kBlue: cRemote::PutMacro(key); break;
default: break;
}
}