From 56d623fe5202a0c8529c9ba5a381b7ecf26193f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 19 Dec 2021 11:37:40 +0100 Subject: Make C-r also reload the current directory --- fastiv.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3