Beviour of menu key in 1.3.38

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

 



Helmut Auer wrote:
> Hi
> 
>>> Why don't you use the BACK ( on most remote controls EXIT ) key for 
>>> that ?
>>>   
>>
>>
>> Because it goes back only one level.
>>
>>  
>>
> Ok - now I got you :-)
> So what about making it customizable:
> Option 1:
> - If OSD is used - clear it - if not open Menu
> Option 2:
> - like 1 + opening MainMenu

Ok, before this escalates into a religious war <g> please try this:

--- vdr.c       2006/01/09 16:44:15     1.234
+++ vdr.c       2006/01/10 18:04:40
@@ -787,14 +787,16 @@
          // Keys that must work independent of any interactive mode:
          switch (key) {
            // Menu control:
-          case kMenu:
+          case kMenu: {
                 key = kNone; // nobody else needs to see this key
+               bool WasMenu = Interact && Interact->IsMenu();
                 if (Menu)
                    DELETE_MENU;
                 else if (cControl::Control() && cOsd::IsOpen())
                    cControl::Control()->Hide();
-               else
+               if (!WasMenu)
                    Menu = new cMenuMain;
+               }
                 break;
            // Info:
            case kInfo: {

If this works for you (an others) I'll make this configurable.

Klaus


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux