changeset 14882:62e16ed961cc

[gaim-migrate @ 17651] Fix the keycodes here too. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 01 Nov 2006 21:39:36 +0000
parents 5228f8cf2a6a
children c8cd118653fc
files console/plugins/lastlog.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/console/plugins/lastlog.c	Wed Nov 01 20:59:23 2006 +0000
+++ b/console/plugins/lastlog.c	Wed Nov 01 21:39:36 2006 +0000
@@ -42,13 +42,13 @@
 {
 	if (key[0] == 27)
 	{
-		if (strcmp(key+1, GNT_KEY_DOWN) == 0)
+		if (strcmp(key, GNT_KEY_DOWN) == 0)
 			gnt_text_view_scroll(view, 1);
-		else if (strcmp(key+1, GNT_KEY_UP) == 0)
+		else if (strcmp(key, GNT_KEY_UP) == 0)
 			gnt_text_view_scroll(view, -1);
-		else if (strcmp(key+1, GNT_KEY_PGDOWN) == 0)
+		else if (strcmp(key, GNT_KEY_PGDOWN) == 0)
 			gnt_text_view_scroll(view, wid->priv.height - 2);
-		else if (strcmp(key+1, GNT_KEY_PGUP) == 0)
+		else if (strcmp(key, GNT_KEY_PGUP) == 0)
 			gnt_text_view_scroll(view, -(wid->priv.height - 2));
 		else
 			return FALSE;