aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-06 07:31:17 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-06 07:49:01 +0200
commit33fb047a73dfced5cc566d15d9a40dd5515cb54d (patch)
tree6e57067da44cfbb21e6724040ec40a1855090ab9
parent215141856af9a7f6dbc86e565ff8bac580fc1647 (diff)
downloadfiv-33fb047a73dfced5cc566d15d9a40dd5515cb54d.tar.gz
fiv-33fb047a73dfced5cc566d15d9a40dd5515cb54d.tar.xz
fiv-33fb047a73dfced5cc566d15d9a40dd5515cb54d.zip
Make Alt+Return work in the browser as well
-rw-r--r--fiv-browser.c10
-rw-r--r--fiv.c1
2 files changed, 11 insertions, 0 deletions
diff --git a/fiv-browser.c b/fiv-browser.c
index ab046b3..3edcf4a 100644
--- a/fiv-browser.c
+++ b/fiv-browser.c
@@ -1430,6 +1430,16 @@ fiv_browser_key_press_event(GtkWidget *widget, GdkEventKey *event)
return GDK_EVENT_STOP;
}
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 | GDK_SHIFT_MASK:
switch (event->keyval) {
diff --git a/fiv.c b/fiv.c
index 57fee50..9d814ab 100644
--- a/fiv.c
+++ b/fiv.c
@@ -111,6 +111,7 @@ static struct key_group help_keys_browser[] = {
{"<Alt>Up", "Go to parent directory"},
{"<Alt>Home", "Go home"},
{"Return", "Open selected item"},
+ {"<Alt>Return", "Show file information"},
{}
}},
{"View", (struct key[]) {