From 33851295d81d45734b83f14bddf785a47ddc9533 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 21 Dec 2021 07:19:44 +0100 Subject: Bind M-Home to going to the home directory --- fastiv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fastiv.c b/fastiv.c index 8994a92..21e778f 100644 --- a/fastiv.c +++ b/fastiv.c @@ -94,6 +94,7 @@ static struct key_section help_keys[] = { {"Left", "Go back in history"}, {"Right", "Go forward in history"}, {"Up", "Go to parent directory"}, + {"Home", "Go home"}, {"F5 r r", "Refresh"}, {} }}, @@ -772,6 +773,9 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, g_free(parent); } return TRUE; + case GDK_KEY_Home: + load_directory(g_get_home_dir()); + return TRUE; } break; case 0: -- cgit v1.2.3-70-g09d2