aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-19 11:37:40 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-19 12:21:14 +0100
commit56d623fe5202a0c8529c9ba5a381b7ecf26193f5 (patch)
treedc0ef94ec5968a7d04814ad71ce4d00fb0eef6d5
parent2c46ca262bd6b2379edacb0a64e7f2fd57e0100f (diff)
downloadfiv-56d623fe5202a0c8529c9ba5a381b7ecf26193f5.tar.gz
fiv-56d623fe5202a0c8529c9ba5a381b7ecf26193f5.tar.xz
fiv-56d623fe5202a0c8529c9ba5a381b7ecf26193f5.zip
Make C-r also reload the current directory
-rw-r--r--fastiv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fastiv.c b/fastiv.c
index 4f8c863..14380eb 100644
--- a/fastiv.c
+++ b/fastiv.c
@@ -559,6 +559,10 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
case GDK_KEY_n:
spawn_path(g.directory);
return TRUE;
+ case GDK_KEY_r:
+ // TODO(p): Reload the image instead, if it's currently visible.
+ load_directory(NULL);
+ return TRUE;
case GDK_KEY_q:
case GDK_KEY_w:
gtk_widget_destroy(g.window);
@@ -594,6 +598,7 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
case GDK_KEY_F5:
case GDK_KEY_r:
+ // TODO(p): See the comment for C-r above.
load_directory(NULL);
return TRUE;