The 'Commands' menu now automatically assigns number keys as hotkeys to the commands

This commit is contained in:
Klaus Schmidinger 2002-03-16 16:48:14 +01:00
parent 986f467993
commit ae3f18dd57
3 changed files with 8 additions and 9 deletions

10
FORMATS
View File

@ -134,13 +134,9 @@ Video Disk Recorder File Formats
Examples:
1 Check for new mail: /usr/local/bin/checkmail 2>&1
2 CPU status : /usr/local/bin/cpustatus 2>&1
3 Disk space : df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'
If the first non-blank character of the 'title' is a digit in the range
1..9, the command can be selected directly by pressing the respective numerical
key on the remote control.
Check for new mail: /usr/local/bin/checkmail 2>&1
CPU status : /usr/local/bin/cpustatus 2>&1
Disk space : df -h | grep '/video' | awk '{ print 100 - $5 "% free"; }'
* svdrphosts.conf

View File

@ -1111,3 +1111,6 @@ Video Disk Recorder Revision History
is not available by default on some Linux distributions, whereas 'killall' is.
Please check if your system provides 'killall' - if it doesn't, please change
this back in 'runvdr' and report this (thanks to Achim Lange).
- The "Commands" menu now automatically assigns number keys as hotkeys to the
commands. If you have preceeded your commands with digits you may want to
remove these from your 'commands.conf' file.

4
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: menu.c 1.168 2002/03/16 14:03:38 kls Exp $
* $Id: menu.c 1.169 2002/03/16 16:44:15 kls Exp $
*/
#include "menu.h"
@ -2210,7 +2210,7 @@ cMenuCommands::cMenuCommands(void)
cCommand *command;
while ((command = Commands.Get(i)) != NULL) {
Add(new cOsdItem(command->Title()));
Add(new cOsdItem(hk(command->Title())));
i++;
}
}