aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-20 11:51:38 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-20 11:51:38 +0200
commit519d6bd108fc09e91904d7e47177be12ddf948d9 (patch)
tree334e5a0e51f6f1178938910e2c283ddc1e8ca8ef /src
parentb721e2655772356006ae1ff4c1b9918d49cea60d (diff)
downloadtdv-519d6bd108fc09e91904d7e47177be12ddf948d9.tar.gz
tdv-519d6bd108fc09e91904d7e47177be12ddf948d9.tar.xz
tdv-519d6bd108fc09e91904d7e47177be12ddf948d9.zip
sdgui: bind Up/Down to view scrolling
Diffstat (limited to 'src')
-rw-r--r--src/sdgui.c4
1 files changed, 4 insertions, 0 deletions
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;
}