Beviour of menu key in 1.3.38
Commit Message
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:
If this works for you (an others) I'll make this configurable.
Klaus
Comments
On Dienstag 10 Januar 2006 19:11, Klaus Schmidinger wrote:
> If this works for you (an others) I'll make this configurable.
this works perfectly for me.
Klaus Schmidinger schrieb:
> If this works for you (an others) I'll make this configurable.
Works fine for me, I did not experience any problems.
Carsten.
@@ -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: {