From 519d6bd108fc09e91904d7e47177be12ddf948d9 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 20 Oct 2021 11:51:38 +0200 Subject: sdgui: bind Up/Down to view scrolling --- src/sdgui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sdgui.c') diff --git a/src/sdgui.c b/src/sdgui.c index 2a86bdc..127f01b 100644 --- a/src/sdgui.c +++ b/src/sdgui.c @@ -219,6 +219,10 @@ on_key_press (G_GNUC_UNUSED GtkWidget *widget, GdkEvent *event, return stardict_view_scroll (view, GTK_SCROLL_PAGES, -0.5), TRUE; if (event->key.keyval == GDK_KEY_Page_Down) return stardict_view_scroll (view, GTK_SCROLL_PAGES, +0.5), TRUE; + if (event->key.keyval == GDK_KEY_Up) + return stardict_view_scroll (view, GTK_SCROLL_STEPS, -1), TRUE; + if (event->key.keyval == GDK_KEY_Down) + return stardict_view_scroll (view, GTK_SCROLL_STEPS, +1), TRUE; } return FALSE; } -- cgit v1.2.3-70-g09d2