diff options
-rw-r--r-- | src/ui/documentwidget.c | 7 | ||||
-rw-r--r-- | src/ui/window.c | 17 |
2 files changed, 17 insertions, 7 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 75309737..43850043 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -244,6 +244,8 @@ void init_DocumentWidget(iDocumentWidget *d) { | |||
244 | #if !defined (iPlatformApple) /* in system menu */ | 244 | #if !defined (iPlatformApple) /* in system menu */ |
245 | addAction_Widget(w, reload_KeyShortcut, "navigate.reload"); | 245 | addAction_Widget(w, reload_KeyShortcut, "navigate.reload"); |
246 | addAction_Widget(w, SDLK_w, KMOD_PRIMARY, "tabs.close"); | 246 | addAction_Widget(w, SDLK_w, KMOD_PRIMARY, "tabs.close"); |
247 | addAction_Widget(w, SDLK_d, KMOD_PRIMARY, "bookmark.add"); | ||
248 | addAction_Widget(w, subscribeToPage_KeyModifier, "feeds.subscribe"); | ||
247 | #endif | 249 | #endif |
248 | addAction_Widget(w, navigateBack_KeyShortcut, "navigate.back"); | 250 | addAction_Widget(w, navigateBack_KeyShortcut, "navigate.back"); |
249 | addAction_Widget(w, navigateForward_KeyShortcut, "navigate.forward"); | 251 | addAction_Widget(w, navigateForward_KeyShortcut, "navigate.forward"); |
@@ -2308,8 +2310,11 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2308 | { "---", 0, 0, NULL }, | 2310 | { "---", 0, 0, NULL }, |
2309 | { "Reload Page", reload_KeyShortcut, "navigate.reload" }, | 2311 | { "Reload Page", reload_KeyShortcut, "navigate.reload" }, |
2310 | { "---", 0, 0, NULL }, | 2312 | { "---", 0, 0, NULL }, |
2313 | { "Bookmark Page...", SDLK_d, KMOD_PRIMARY, "bookmark.add" }, | ||
2314 | { "Subscribe to Page...", subscribeToPage_KeyModifier, "feeds.subscribe" }, | ||
2315 | { "---", 0, 0, NULL }, | ||
2311 | { "Copy Page URL", 0, 0, "document.copylink" } }, | 2316 | { "Copy Page URL", 0, 0, "document.copylink" } }, |
2312 | 8); | 2317 | 11); |
2313 | if (isEmpty_Range(&d->selectMark)) { | 2318 | if (isEmpty_Range(&d->selectMark)) { |
2314 | pushBackN_Array( | 2319 | pushBackN_Array( |
2315 | &items, | 2320 | &items, |
diff --git a/src/ui/window.c b/src/ui/window.c index c2d43aae..a16976b5 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -104,17 +104,18 @@ static const iMenuItem navMenuItems_[] = { | |||
104 | { "Save to Downloads", SDLK_s, KMOD_PRIMARY, "document.save" }, | 104 | { "Save to Downloads", SDLK_s, KMOD_PRIMARY, "document.save" }, |
105 | { "Copy Source Text", SDLK_c, KMOD_PRIMARY, "copy" }, | 105 | { "Copy Source Text", SDLK_c, KMOD_PRIMARY, "copy" }, |
106 | { "---", 0, 0, NULL }, | 106 | { "---", 0, 0, NULL }, |
107 | { "Bookmark Page", SDLK_d, KMOD_PRIMARY, "bookmark.add" }, | ||
108 | { "Subscribe to Page", subscribeToPage_KeyModifier, "feeds.subscribe" }, | ||
109 | { "---", 0, 0, NULL }, | ||
110 | { "Show Feed Entries", 0, 0, "!open url:about:feeds" }, | ||
111 | { "---", 0, 0, NULL }, | ||
112 | { "Toggle Left Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, | 107 | { "Toggle Left Sidebar", SDLK_l, KMOD_PRIMARY | KMOD_SHIFT, "sidebar.toggle" }, |
113 | { "Toggle Right Sidebar", SDLK_p, KMOD_PRIMARY | KMOD_SHIFT, "sidebar2.toggle" }, | 108 | { "Toggle Right Sidebar", SDLK_p, KMOD_PRIMARY | KMOD_SHIFT, "sidebar2.toggle" }, |
114 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, | 109 | { "Zoom In", SDLK_EQUALS, KMOD_PRIMARY, "zoom.delta arg:10" }, |
115 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, | 110 | { "Zoom Out", SDLK_MINUS, KMOD_PRIMARY, "zoom.delta arg:-10" }, |
116 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, | 111 | { "Reset Zoom", SDLK_0, KMOD_PRIMARY, "zoom.set arg:100" }, |
117 | { "---", 0, 0, NULL }, | 112 | { "---", 0, 0, NULL }, |
113 | { "List All Bookmarks", 0, 0, "!open url:about:bookmarks" }, | ||
114 | { "List Bookmarks by Tag", 0, 0, "!open url:about:bookmarks?tags" }, | ||
115 | { "List Bookmarks by Creation Time", 0, 0, "!open url:about:bookmarks?created" }, | ||
116 | { "---", 0, 0, NULL }, | ||
117 | { "Show Feed Entries", 0, 0, "!open url:about:feeds" }, | ||
118 | { "---", 0, 0, NULL }, | ||
118 | { "Preferences...", SDLK_COMMA, KMOD_PRIMARY, "preferences" }, | 119 | { "Preferences...", SDLK_COMMA, KMOD_PRIMARY, "preferences" }, |
119 | { "Help", SDLK_F1, 0, "!open url:about:help" }, | 120 | { "Help", SDLK_F1, 0, "!open url:about:help" }, |
120 | { "Release Notes", 0, 0, "!open url:about:version" }, | 121 | { "Release Notes", 0, 0, "!open url:about:version" }, |
@@ -162,7 +163,11 @@ static const iMenuItem viewMenuItems_[] = { | |||
162 | static iMenuItem bookmarksMenuItems_[] = { | 163 | static iMenuItem bookmarksMenuItems_[] = { |
163 | { "Bookmark This Page...", SDLK_d, KMOD_PRIMARY, "bookmark.add" }, | 164 | { "Bookmark This Page...", SDLK_d, KMOD_PRIMARY, "bookmark.add" }, |
164 | { "---", 0, 0, NULL }, | 165 | { "---", 0, 0, NULL }, |
165 | { "Subscribe to This Page", subscribeToPage_KeyModifier, "feeds.subscribe" }, | 166 | { "List All", 0, 0, "open url:about:bookmarks" }, |
167 | { "List by Tag", 0, 0, "open url:about:bookmarks?tags" }, | ||
168 | { "List by Creation Time", 0, 0, "open url:about:bookmarks?created" }, | ||
169 | { "---", 0, 0, NULL }, | ||
170 | { "Subscribe to This Page...", subscribeToPage_KeyModifier, "feeds.subscribe" }, | ||
166 | { "---", 0, 0, NULL }, | 171 | { "---", 0, 0, NULL }, |
167 | { "Show Feed Entries", 0, 0, "open url:about:feeds" }, | 172 | { "Show Feed Entries", 0, 0, "open url:about:feeds" }, |
168 | { "Refresh Feeds", SDLK_r, KMOD_PRIMARY | KMOD_SHIFT, "feeds.refresh" }, | 173 | { "Refresh Feeds", SDLK_r, KMOD_PRIMARY | KMOD_SHIFT, "feeds.refresh" }, |