From 3cc31ff3f3d96ddbac662669c50edb1be01abe3a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 28 Apr 2020 20:36:08 +0200 Subject: [PATCH] Browser: Make Ctrl+L select the location bar again ..by making sure the Tab actions are scoped to the Tab. --- Applications/Browser/Tab.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index 59db6309bb..cbf79395af 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -155,7 +155,7 @@ Tab::Tab() auto focus_location_box_action = GUI::Action::create("Focus location box", { Mod_Ctrl, Key_L }, [this](auto&) { m_location_box->select_all(); m_location_box->set_focus(true); - }); + }, this); m_statusbar = widget.add(); @@ -203,7 +203,7 @@ Tab::Tab() execl("/bin/TextEditor", "TextEditor", filename_to_open.characters(), nullptr); ASSERT_NOT_REACHED(); } - })); + }, this)); inspect_menu.add_action(GUI::Action::create("Inspect DOM tree", { Mod_None, Key_F12 }, [this](auto&) { if (!m_dom_inspector_window) { m_dom_inspector_window = GUI::Window::construct(); @@ -215,7 +215,7 @@ Tab::Tab() inspector_widget->set_document(m_html_widget->document()); m_dom_inspector_window->show(); m_dom_inspector_window->move_to_front(); - })); + }, this)); auto& debug_menu = m_menubar->add_menu("Debug"); debug_menu.add_action(GUI::Action::create(