Bind M-Home to going to the home directory

This commit is contained in:
Přemysl Eric Janouch 2021-12-21 07:19:44 +01:00
parent 46f90f2f35
commit 33851295d8
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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: