aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-22 18:36:16 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-22 18:37:24 +0200
commit2dc4e9c13b33ae38099f159a9fd87b4c8ea31978 (patch)
tree2ed0257b15c2419a9fa5e269e44adc66268c2cc5
parenta1f6ffd226efcc0aa42b8a03046a2e1f09786d0d (diff)
downloadfiv-2dc4e9c13b33ae38099f159a9fd87b4c8ea31978.tar.gz
fiv-2dc4e9c13b33ae38099f159a9fd87b4c8ea31978.tar.xz
fiv-2dc4e9c13b33ae38099f159a9fd87b4c8ea31978.zip
Make backspace go back in history
As on Windows.
-rw-r--r--fiv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fiv.c b/fiv.c
index 4b8440e..76133ae 100644
--- a/fiv.c
+++ b/fiv.c
@@ -1438,6 +1438,9 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
break;
case 0:
switch (event->keyval) {
+ case GDK_KEY_BackSpace:
+ go_back();
+ return TRUE;
case GDK_KEY_q:
gtk_widget_destroy(g.window);
return TRUE;