summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-03 07:03:04 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-03 07:03:04 +0300
commit311a59df5552ae7ad52e1f001487112a300889c0 (patch)
tree8c6d264cc77a93c261ca30f1cad4105f2a787eff /src/ui
parent89918c7e98d47957a7804e23bb1b4c7914950d2d (diff)
Added menu items for view splitting
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/keys.c3
-rw-r--r--src/ui/root.c2
-rw-r--r--src/ui/window.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 68319598..5fd8d2eb 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -224,7 +224,8 @@ static const struct { int id; iMenuItem bind; int flags; } defaultBindings_[] =
224 { 77, { "${keys.tab.close}", closeTab_KeyShortcut, "tabs.close" }, 0 }, 224 { 77, { "${keys.tab.close}", closeTab_KeyShortcut, "tabs.close" }, 0 },
225 { 80, { "${keys.tab.prev}", prevTab_KeyShortcut, "tabs.prev" }, 0 }, 225 { 80, { "${keys.tab.prev}", prevTab_KeyShortcut, "tabs.prev" }, 0 },
226 { 81, { "${keys.tab.next}", nextTab_KeyShortcut, "tabs.next" }, 0 }, 226 { 81, { "${keys.tab.next}", nextTab_KeyShortcut, "tabs.next" }, 0 },
227 { 91, { "${keys.frame.next}", SDLK_TAB, KMOD_CTRL, "keyroot.next", }, 0 }, 227 { 90, { "${keys.split.menu}", SDLK_j, KMOD_PRIMARY, "splitmenu.open" }, 0 },
228 { 91, { "${keys.split.next}", SDLK_TAB, KMOD_CTRL, "keyroot.next", }, 0 },
228 { 100,{ "${keys.hoverurl}", '/', KMOD_PRIMARY, "prefs.hoverlink.toggle" }, 0 }, 229 { 100,{ "${keys.hoverurl}", '/', KMOD_PRIMARY, "prefs.hoverlink.toggle" }, 0 },
229 /* The following cannot currently be changed (built-in duplicates). */ 230 /* The following cannot currently be changed (built-in duplicates). */
230#if defined (iPlatformApple) 231#if defined (iPlatformApple)
diff --git a/src/ui/root.c b/src/ui/root.c
index 17682125..cf109fc8 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -71,6 +71,7 @@ static const iMenuItem navMenuItems_[] = {
71 { "${menu.zoom.in}", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 71 { "${menu.zoom.in}", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" },
72 { "${menu.zoom.out}", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, 72 { "${menu.zoom.out}", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" },
73 { "${menu.zoom.reset}", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, 73 { "${menu.zoom.reset}", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" },
74 { "${menu.view.split}", SDLK_j, KMOD_PRIMARY, "splitmenu.open" },
74 { "---", 0, 0, NULL }, 75 { "---", 0, 0, NULL },
75 { book_Icon " ${menu.bookmarks.list}", 0, 0, "!open url:about:bookmarks" }, 76 { book_Icon " ${menu.bookmarks.list}", 0, 0, "!open url:about:bookmarks" },
76 { "${menu.bookmarks.bytag}", 0, 0, "!open url:about:bookmarks?tags" }, 77 { "${menu.bookmarks.bytag}", 0, 0, "!open url:about:bookmarks?tags" },
@@ -95,6 +96,7 @@ static const iMenuItem tabletNavMenuItems_[] = {
95 { magnifyingGlass_Icon " ${menu.find}", 0, 0, "focus.set id:find.input" }, 96 { magnifyingGlass_Icon " ${menu.find}", 0, 0, "focus.set id:find.input" },
96 { leftHalf_Icon " ${menu.sidebar.left}", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, 97 { leftHalf_Icon " ${menu.sidebar.left}", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" },
97 { rightHalf_Icon " ${menu.sidebar.right}", SDLK_p, KMOD_PRIMARY | KMOD_SHIFT, "sidebar2.toggle" }, 98 { rightHalf_Icon " ${menu.sidebar.right}", SDLK_p, KMOD_PRIMARY | KMOD_SHIFT, "sidebar2.toggle" },
99 { "${menu.view.split}", SDLK_j, KMOD_PRIMARY, "splitmenu.open" },
98 { "---", 0, 0, NULL }, 100 { "---", 0, 0, NULL },
99 { book_Icon " ${menu.bookmarks.list}", 0, 0, "!open url:about:bookmarks" }, 101 { book_Icon " ${menu.bookmarks.list}", 0, 0, "!open url:about:bookmarks" },
100 { "${menu.bookmarks.bytag}", 0, 0, "!open url:about:bookmarks?tags" }, 102 { "${menu.bookmarks.bytag}", 0, 0, "!open url:about:bookmarks?tags" },
diff --git a/src/ui/window.c b/src/ui/window.c
index e78bb81e..80504aae 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -112,6 +112,7 @@ static const iMenuItem viewMenuItems_[] = {
112 { "${menu.zoom.in}", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, 112 { "${menu.zoom.in}", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" },
113 { "${menu.zoom.out}", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, 113 { "${menu.zoom.out}", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" },
114 { "${menu.zoom.reset}", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, 114 { "${menu.zoom.reset}", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" },
115 { "${menu.view.split}", SDLK_j, KMOD_PRIMARY, "splitmenu.open" },
115}; 116};
116 117
117static iMenuItem bookmarksMenuItems_[] = { 118static iMenuItem bookmarksMenuItems_[] = {