From 31f7eafd9c6897cdf0ee7d6eeaade9dcc65cb006 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 11 Jun 2021 12:39:28 +0300 Subject: iOS: Opening a file via document picker Use a native file picker to open files. Declare support for .gmi/.gemini files so they can be opened via Files and share sheets. --- src/ui/root.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui/root.c') diff --git a/src/ui/root.c b/src/ui/root.c index 52b6829c..0ab969bf 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -90,6 +90,7 @@ static const iMenuItem navMenuItems_[] = { #if defined (iPlatformAppleMobile) /* Tablet menu. */ static const iMenuItem tabletNavMenuItems_[] = { + { folder_Icon " ${menu.openfile}", SDLK_o, KMOD_PRIMARY, "file.open" }, { add_Icon " ${menu.newtab}", 't', KMOD_PRIMARY, "tabs.new" }, { close_Icon " ${menu.closetab}", 'w', KMOD_PRIMARY, "tabs.close" }, { "---", 0, 0, NULL }, @@ -110,6 +111,7 @@ static const iMenuItem tabletNavMenuItems_[] = { /* Phone menu. */ static const iMenuItem phoneNavMenuItems_[] = { + { folder_Icon " ${menu.openfile}", SDLK_o, KMOD_PRIMARY, "file.open" }, { add_Icon " ${menu.newtab}", 't', KMOD_PRIMARY, "tabs.new" }, { close_Icon " ${menu.closetab}", 'w', KMOD_PRIMARY, "tabs.close" }, { "---", 0, 0, NULL }, -- cgit v1.2.3