diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-14 10:54:13 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-14 10:54:13 +0100 |
commit | 9efe1f9479e08dccc6fb3d1ac7b0bc4c2fd3e531 (patch) | |
tree | a760bd785695726fb84920f14ca5189c1e48b3a0 /vdr.c | |
parent | def74b48c4786b30b3c17edc38ce568ab68a333e (diff) | |
download | vdr-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.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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; } } |