[mythtv] [PATCH] Fix Guide Bindings

Matt Felsen matt at iwdt.net
Fri Aug 15 20:32:31 EDT 2003


Submitted is a patch which "fixes" (according to my liking :)) the 
bindings for the program guide. Currently, it works as follows:

When watching live tv:
I, Space, Enter and Return: display recording info
M: change to channel

I thought this was un-intuitive and that pressing Enter (or any of its 
variants) should change to the selected channel, just as you would with 
any other digital cable/satellite receiver. My patch changes the 
bindings to the following:

When watching live tv:
Space, Enter and Return: change to channel
I: display recording info

The key bindings for the guide via scheduling recordings remain 
unchanged: i, space, enter and return will all display recording info.

Thanks,
Matt
-------------- next part --------------
? mypatch.diff
Index: libs/libmythtv/guidegrid.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/guidegrid.cpp,v
retrieving revision 1.124
diff -u -d -r1.124 guidegrid.cpp
--- libs/libmythtv/guidegrid.cpp	31 Jul 2003 17:25:46 -0000	1.124
+++ libs/libmythtv/guidegrid.cpp	15 Aug 2003 23:15:54 -0000
@@ -264,10 +264,18 @@
         case Key_Slash: toggleChannelFavorite(); break;
  
         case Key_C: case Key_Escape: escape(); break;
-        case Key_M: enter(); break;
+        
+	case Key_Space:
+	case Key_Enter:
+	case Key_Return:
+		if (m_player && m_player->IsRunning())
+			enter();
+		else
+			displayInfo();
 
-        case Key_I: case Key_Space: 
-        case Key_Enter: case Key_Return:  displayInfo(); break;
+		break;
+
+	case Key_I: displayInfo(); break;
 
         case Key_R: quickRecord(); break;
         case Key_X: channelUpdate(); break;


More information about the mythtv-dev mailing list