Open links in new tabs using Control and Left mouse button
This commit is contained in:
parent
f77e79be78
commit
819dfd8d77
2 changed files with 16 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -10,6 +10,7 @@ Contributors:
|
|||
Arnaud Renevier <arenevier@fdn.fr>
|
||||
Dale Whittaker <dayul@users.sf.net>
|
||||
Anders F Björklund <afb@macports.org>
|
||||
Alexander Hesse <alex@phicode.de>
|
||||
|
||||
Graphics:
|
||||
extension: Nancy Runge <nancy@twotoasts.de>
|
||||
|
|
|
@ -691,7 +691,21 @@ gtk_widget_button_press_event_cb (WebKitWebView* web_view,
|
|||
case 1:
|
||||
if (!link_uri)
|
||||
return FALSE;
|
||||
if (state & GDK_SHIFT_MASK)
|
||||
#ifdef HAVE_OSX
|
||||
/* FIXME: Test for Command key */
|
||||
if (0)
|
||||
#else
|
||||
if (state & GDK_CONTROL_MASK)
|
||||
#endif
|
||||
{
|
||||
/* Open link in new tab */
|
||||
background = view->open_tabs_in_the_background;
|
||||
if (state & GDK_SHIFT_MASK)
|
||||
g_signal_emit_by_name (view, "new-tab", link_uri, background);
|
||||
else g_signal_emit_by_name (view, "new-tab", link_uri, !background);
|
||||
return TRUE;
|
||||
}
|
||||
else if (state & GDK_SHIFT_MASK)
|
||||
{
|
||||
/* Open link in new window */
|
||||
g_signal_emit_by_name (view, "new-window", link_uri);
|
||||
|
|
Loading…
Reference in a new issue