mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +00:00
Browser: Make Ctrl+L select the location bar again
..by making sure the Tab actions are scoped to the Tab.
This commit is contained in:
parent
5b4b72e699
commit
3cc31ff3f3
1 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ Tab::Tab()
|
||||||
auto focus_location_box_action = GUI::Action::create("Focus location box", { Mod_Ctrl, Key_L }, [this](auto&) {
|
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->select_all();
|
||||||
m_location_box->set_focus(true);
|
m_location_box->set_focus(true);
|
||||||
});
|
}, this);
|
||||||
|
|
||||||
m_statusbar = widget.add<GUI::StatusBar>();
|
m_statusbar = widget.add<GUI::StatusBar>();
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ Tab::Tab()
|
||||||
execl("/bin/TextEditor", "TextEditor", filename_to_open.characters(), nullptr);
|
execl("/bin/TextEditor", "TextEditor", filename_to_open.characters(), nullptr);
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
}));
|
}, this));
|
||||||
inspect_menu.add_action(GUI::Action::create("Inspect DOM tree", { Mod_None, Key_F12 }, [this](auto&) {
|
inspect_menu.add_action(GUI::Action::create("Inspect DOM tree", { Mod_None, Key_F12 }, [this](auto&) {
|
||||||
if (!m_dom_inspector_window) {
|
if (!m_dom_inspector_window) {
|
||||||
m_dom_inspector_window = GUI::Window::construct();
|
m_dom_inspector_window = GUI::Window::construct();
|
||||||
|
@ -215,7 +215,7 @@ Tab::Tab()
|
||||||
inspector_widget->set_document(m_html_widget->document());
|
inspector_widget->set_document(m_html_widget->document());
|
||||||
m_dom_inspector_window->show();
|
m_dom_inspector_window->show();
|
||||||
m_dom_inspector_window->move_to_front();
|
m_dom_inspector_window->move_to_front();
|
||||||
}));
|
}, this));
|
||||||
|
|
||||||
auto& debug_menu = m_menubar->add_menu("Debug");
|
auto& debug_menu = m_menubar->add_menu("Debug");
|
||||||
debug_menu.add_action(GUI::Action::create(
|
debug_menu.add_action(GUI::Action::create(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue