summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r--src/ui/sidebarwidget.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index cb6dab65..86410d11 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -1142,7 +1142,9 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
1142 } 1142 }
1143 if (isCommand_Widget(w, ev, "feed.entry.bookmark")) { 1143 if (isCommand_Widget(w, ev, "feed.entry.bookmark")) {
1144 makeBookmarkCreation_Widget(&item->url, &item->label, item->icon); 1144 makeBookmarkCreation_Widget(&item->url, &item->label, item->icon);
1145 postCommand_App("focus.set id:bmed.title"); 1145 if (deviceType_App() == desktop_AppDeviceType) {
1146 postCommand_App("focus.set id:bmed.title");
1147 }
1146 return iTrue; 1148 return iTrue;
1147 } 1149 }
1148 iBookmark *feedBookmark = get_Bookmarks(bookmarks_App(), item->id); 1150 iBookmark *feedBookmark = get_Bookmarks(bookmarks_App(), item->id);
@@ -1290,7 +1292,9 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
1290 &item->url, 1292 &item->url,
1291 collect_String(newRange_String(urlHost_String(&item->url))), 1293 collect_String(newRange_String(urlHost_String(&item->url))),
1292 0x1f310 /* globe */); 1294 0x1f310 /* globe */);
1293 postCommand_App("focus.set id:bmed.title"); 1295 if (deviceType_App() == desktop_AppDeviceType) {
1296 postCommand_App("focus.set id:bmed.title");
1297 }
1294 } 1298 }
1295 } 1299 }
1296 else if (equal_Command(cmd, "history.clear")) { 1300 else if (equal_Command(cmd, "history.clear")) {