summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-11 14:25:03 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-11 14:25:03 +0300
commit25456ce008c7fe78378ddaaf784c74209a2d8c14 (patch)
treefbb86324f468ab984ca1be1c25f92872499ed948 /src/ui/window.c
parent2fc802367acd63b86fecda92461d63d029d7378c (diff)
macOS: Handling launch URLs and drop'n'drop
Improved drop and drop event handling: multiple dropped files/URLs open in new tabs. The application registers gemini: as a handled URL scheme.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 87ca2614..0a63a941 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -138,8 +138,8 @@ static const iMenuItem viewMenuItems[] = {
138 { "Show Page Outline", '4', KMOD_PRIMARY, "sidebar.mode arg:3 toggle:1" }, 138 { "Show Page Outline", '4', KMOD_PRIMARY, "sidebar.mode arg:3 toggle:1" },
139 { "Toggle Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, 139 { "Toggle Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" },
140 { "---", 0, 0, NULL }, 140 { "---", 0, 0, NULL },
141 { "Go Back", navigateBack_KeyShortcut, "navigate.back" }, 141 { "Go Back", SDLK_LEFTBRACKET, KMOD_PRIMARY, "navigate.back" },
142 { "Go Forward", navigateForward_KeyShortcut, "navigate.forward" }, 142 { "Go Forward", SDLK_RIGHTBRACKET, KMOD_PRIMARY, "navigate.forward" },
143 { "Reload Page", reload_KeyShortcut, "navigate.reload" }, 143 { "Reload Page", reload_KeyShortcut, "navigate.reload" },
144 { "---", 0, 0, NULL }, 144 { "---", 0, 0, NULL },
145 { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 145 { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" },
@@ -546,9 +546,6 @@ void init_Window(iWindow *d, iRect rect) {
546 d->presentTime = 0.0; 546 d->presentTime = 0.0;
547 setId_Widget(d->root, "root"); 547 setId_Widget(d->root, "root");
548 init_Text(d->render); 548 init_Text(d->render);
549#if defined (iPlatformApple) && !defined (iPlatformIOS)
550 setupApplication_MacOS();
551#endif
552 setupUserInterface_Window(d); 549 setupUserInterface_Window(d);
553 updateRootSize_Window_(d); 550 updateRootSize_Window_(d);
554} 551}