Bind M-Home to going to the home directory
This commit is contained in:
parent
46f90f2f35
commit
33851295d8
4
fastiv.c
4
fastiv.c
|
@ -94,6 +94,7 @@ static struct key_section help_keys[] = {
|
||||||
{"<alt>Left", "Go back in history"},
|
{"<alt>Left", "Go back in history"},
|
||||||
{"<alt>Right", "Go forward in history"},
|
{"<alt>Right", "Go forward in history"},
|
||||||
{"<alt>Up", "Go to parent directory"},
|
{"<alt>Up", "Go to parent directory"},
|
||||||
|
{"<alt>Home", "Go home"},
|
||||||
{"F5 r <control>r", "Refresh"},
|
{"F5 r <control>r", "Refresh"},
|
||||||
{}
|
{}
|
||||||
}},
|
}},
|
||||||
|
@ -772,6 +773,9 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event,
|
||||||
g_free(parent);
|
g_free(parent);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
case GDK_KEY_Home:
|
||||||
|
load_directory(g_get_home_dir());
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
|
|
Loading…
Reference in New Issue