diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-11 12:39:28 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-11 12:39:28 +0300 |
commit | 31f7eafd9c6897cdf0ee7d6eeaade9dcc65cb006 (patch) | |
tree | 415707ca26c04ff1bee461c685e79c4302546cd4 /src/ui/root.c | |
parent | 703d2b41fa299a9f8e24a5f6064c3624c3dedbbb (diff) |
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.
Diffstat (limited to 'src/ui/root.c')
-rw-r--r-- | src/ui/root.c | 2 |
1 files changed, 2 insertions, 0 deletions
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_[] = { | |||
90 | #if defined (iPlatformAppleMobile) | 90 | #if defined (iPlatformAppleMobile) |
91 | /* Tablet menu. */ | 91 | /* Tablet menu. */ |
92 | static const iMenuItem tabletNavMenuItems_[] = { | 92 | static const iMenuItem tabletNavMenuItems_[] = { |
93 | { folder_Icon " ${menu.openfile}", SDLK_o, KMOD_PRIMARY, "file.open" }, | ||
93 | { add_Icon " ${menu.newtab}", 't', KMOD_PRIMARY, "tabs.new" }, | 94 | { add_Icon " ${menu.newtab}", 't', KMOD_PRIMARY, "tabs.new" }, |
94 | { close_Icon " ${menu.closetab}", 'w', KMOD_PRIMARY, "tabs.close" }, | 95 | { close_Icon " ${menu.closetab}", 'w', KMOD_PRIMARY, "tabs.close" }, |
95 | { "---", 0, 0, NULL }, | 96 | { "---", 0, 0, NULL }, |
@@ -110,6 +111,7 @@ static const iMenuItem tabletNavMenuItems_[] = { | |||
110 | 111 | ||
111 | /* Phone menu. */ | 112 | /* Phone menu. */ |
112 | static const iMenuItem phoneNavMenuItems_[] = { | 113 | static const iMenuItem phoneNavMenuItems_[] = { |
114 | { folder_Icon " ${menu.openfile}", SDLK_o, KMOD_PRIMARY, "file.open" }, | ||
113 | { add_Icon " ${menu.newtab}", 't', KMOD_PRIMARY, "tabs.new" }, | 115 | { add_Icon " ${menu.newtab}", 't', KMOD_PRIMARY, "tabs.new" }, |
114 | { close_Icon " ${menu.closetab}", 'w', KMOD_PRIMARY, "tabs.close" }, | 116 | { close_Icon " ${menu.closetab}", 'w', KMOD_PRIMARY, "tabs.close" }, |
115 | { "---", 0, 0, NULL }, | 117 | { "---", 0, 0, NULL }, |