Преглед изворни кода

Ladybird/Qt: Don't change to new tab with 'Open in New Tab'

It now just opens a new tab, without changing the current tab.
Jamie Mansfield пре 11 месеци
родитељ
комит
df34ee058b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Ladybird/Qt/Tab.cpp

+ 1 - 1
Ladybird/Qt/Tab.cpp

@@ -852,7 +852,7 @@ void Tab::open_link(URL::URL const& url)
 
 
 void Tab::open_link_in_new_tab(URL::URL const& url)
 void Tab::open_link_in_new_tab(URL::URL const& url)
 {
 {
-    view().on_link_click(url, "_blank", 0);
+    view().on_link_click(url, "_blank", Web::UIEvents::Mod_Ctrl);
 }
 }
 
 
 void Tab::copy_link_url(URL::URL const& url)
 void Tab::copy_link_url(URL::URL const& url)