Browser: Escape an ampersand in the menu to avoid making a shortcut

This commit is contained in:
Karol Kosek 2021-07-14 17:38:45 +02:00 committed by Andreas Kling
commit 1c30f0a154
Notes: sideshowbarker 2024-07-19 17:25:03 +09:00

View file

@ -150,7 +150,7 @@ Tab::Tab(BrowserWindow& window, Type type)
view().set_focus(true);
};
m_location_box->add_custom_context_menu_action(GUI::Action::create("Paste & Go", [this](auto&) {
m_location_box->add_custom_context_menu_action(GUI::Action::create("Paste && Go", [this](auto&) {
m_location_box->set_text(GUI::Clipboard::the().data());
m_location_box->on_return_pressed();
}));