mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Allow ctrl-click on hotlist toolbar to open in a new tab
This commit is contained in:
parent
c8b3fbbfdd
commit
083cf492f5
@ -4339,7 +4339,13 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
|
||||
case GID_HOTLIST:
|
||||
if(node = (struct Node *)GetTagData(SPEEDBAR_SelectedNode, 0, msg->IAddress)) {
|
||||
GetSpeedButtonNodeAttrs(node, SBNA_UserData, (ULONG *)&url, TAG_DONE);
|
||||
browser_window_go(gwin->bw, url, NULL, true);
|
||||
|
||||
ami_update_quals(gwin);
|
||||
if(gwin->key_state & BROWSER_MOUSE_MOD_2) {
|
||||
browser_window_create(url, gwin->bw, NULL, false, true);
|
||||
} else {
|
||||
browser_window_go(gwin->bw, url, NULL, true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user