diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-12-21 07:19:44 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-12-21 07:20:06 +0100 |
commit | 33851295d81d45734b83f14bddf785a47ddc9533 (patch) | |
tree | 91962d8a3d87bb5b0bd3bd0dc54049d0628d50ef | |
parent | 46f90f2f3546b00cb49cd32ba6e225ddc5972cce (diff) | |
download | fiv-33851295d81d45734b83f14bddf785a47ddc9533.tar.gz fiv-33851295d81d45734b83f14bddf785a47ddc9533.tar.xz fiv-33851295d81d45734b83f14bddf785a47ddc9533.zip |
Bind M-Home to going to the home directory
-rw-r--r-- | fastiv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |