Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: ProcessKey help



Maynard Cedric wrote:
> 
> Well, the better way to explain it is by the exemple...
> So I join a tiny vdr-test-plugin plugin which implement a Test menu in the
> main menu
> In this menu, you can find a cMenuEditChrItem,a cMenuEditStrItem, and a
> SetHelp("Yep",NULL,NULL,NULL)
> When you are on the first line(cMenuEditChrItem), Red/Green/Yellow/Blue
> buttons does nothing (as nothing is coded for those keys)
> When you are on the second line(cMenuEditStrItem), Red/Yellow/Blue buttons
> does nothing, but green button do something like
> "SetHelp(NULL,NULL,NULL,NULL)" that I've not coded anywhere!!!
> So I'd just like to know if it is a "normal" issue that I have to deal with,
> or did a put the finger on something??

There was apparently a bug in menuitems.c.
Please try the following fix:

--- menuitems.c 2004/05/16 12:47:02     1.18
+++ menuitems.c 2004/06/19 09:45:45
@@ -331,8 +331,8 @@
                  if (pos >= 0) {
                     insert = !insert;
                     newchar = true;
+                    SetHelpKeys();
                     }
-                 SetHelpKeys();
                  break;
     case kYellow|k_Repeat:
     case kYellow: // Remove the character at current position; in insert mode it is the character to the right of cursor


Klaus

> ...
>                              Name: vdr-test-plugin.tar.gz
>    vdr-test-plugin.tar.gz    Type: Unix Tape Archive (application/x-tar)
>                          Encoding: base64




Home | Main Index | Thread Index