Make Alt+Return work in the browser as well
This commit is contained in:
parent
215141856a
commit
33fb047a73
@ -1430,6 +1430,16 @@ fiv_browser_key_press_event(GtkWidget *widget, GdkEventKey *event)
|
|||||||
return GDK_EVENT_STOP;
|
return GDK_EVENT_STOP;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case GDK_MOD1_MASK:
|
||||||
|
switch (event->keyval) {
|
||||||
|
case GDK_KEY_Return:
|
||||||
|
if (self->selected) {
|
||||||
|
GtkWindow *window = GTK_WINDOW(gtk_widget_get_toplevel(widget));
|
||||||
|
fiv_context_menu_information(window, self->selected->uri);
|
||||||
|
}
|
||||||
|
return GDK_EVENT_STOP;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case GDK_CONTROL_MASK:
|
case GDK_CONTROL_MASK:
|
||||||
case GDK_CONTROL_MASK | GDK_SHIFT_MASK:
|
case GDK_CONTROL_MASK | GDK_SHIFT_MASK:
|
||||||
switch (event->keyval) {
|
switch (event->keyval) {
|
||||||
|
1
fiv.c
1
fiv.c
@ -111,6 +111,7 @@ static struct key_group help_keys_browser[] = {
|
|||||||
{"<Alt>Up", "Go to parent directory"},
|
{"<Alt>Up", "Go to parent directory"},
|
||||||
{"<Alt>Home", "Go home"},
|
{"<Alt>Home", "Go home"},
|
||||||
{"Return", "Open selected item"},
|
{"Return", "Open selected item"},
|
||||||
|
{"<Alt>Return", "Show file information"},
|
||||||
{}
|
{}
|
||||||
}},
|
}},
|
||||||
{"View", (struct key[]) {
|
{"View", (struct key[]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user