aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-21 07:19:44 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-21 07:20:06 +0100
commit33851295d81d45734b83f14bddf785a47ddc9533 (patch)
tree91962d8a3d87bb5b0bd3bd0dc54049d0628d50ef
parent46f90f2f3546b00cb49cd32ba6e225ddc5972cce (diff)
downloadfiv-33851295d81d45734b83f14bddf785a47ddc9533.tar.gz
fiv-33851295d81d45734b83f14bddf785a47ddc9533.tar.xz
fiv-33851295d81d45734b83f14bddf785a47ddc9533.zip
Bind M-Home to going to the home directory
-rw-r--r--fastiv.c4
1 files changed, 4 insertions, 0 deletions
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[] = {
{"<alt>Left", "Go back in history"},
{"<alt>Right", "Go forward in history"},
{"<alt>Up", "Go to parent directory"},
+ {"<alt>Home", "Go home"},
{"F5 r <control>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: