diff audacious/playlistwin.c @ 226:f6ad670bb500 trunk

[svn] Make the left and right keys work when the playlist window has focus.
author nenolod
date Fri, 25 Nov 2005 19:54:46 -0800
parents 1ce5afec0db1
children bc265f3727f4
line wrap: on
line diff
--- a/audacious/playlistwin.c	Fri Nov 25 19:29:04 2005 -0800
+++ b/audacious/playlistwin.c	Fri Nov 25 19:54:46 2005 -0800
@@ -1362,6 +1362,23 @@
         else
             playlistwin_show_filebrowser();
         break;
+    case GDK_Left:
+    case GDK_KP_Left:
+    case GDK_KP_7:
+        if (playlist_get_current_length() != -1)
+            bmp_playback_seek(CLAMP
+                              (bmp_playback_get_time() - 5000, 0,
+                              playlist_get_current_length()) / 1000);
+        break;
+    case GDK_Right:
+    case GDK_KP_Right:
+    case GDK_KP_9:
+        if (playlist_get_current_length() != -1)
+            bmp_playback_seek(CLAMP
+                              (bmp_playback_get_time() + 5000, 0,
+                              playlist_get_current_length()) / 1000);
+        break;
+
     case GDK_Escape:
         mainwin_minimize_cb();
         break;