From 33fb047a73dfced5cc566d15d9a40dd5515cb54d Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 6 Aug 2022 07:31:17 +0200
Subject: Make Alt+Return work in the browser as well
---
fiv-browser.c | 10 ++++++++++
fiv.c | 1 +
2 files changed, 11 insertions(+)
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[] = {
{"