From 2483a78313000ec0036600a4e8b4d18be9b7fcd8 Mon Sep 17 00:00:00 2001 From: networkException Date: Tue, 6 Jul 2021 16:50:20 +0200 Subject: [PATCH] Browser: Show an example url placeholder in the search engine InputBox This makes it more clear what the format for a search engine url is :^) --- Userland/Applications/Browser/BrowserWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index 2c7a8cd91a..41ed8fafdc 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Andreas Kling + * Copyright (c) 2021, Jakob-Niklas See * * SPDX-License-Identifier: BSD-2-Clause */ @@ -313,7 +314,7 @@ void BrowserWindow::build_menus() auto custom_search_engine_action = GUI::Action::create_checkable("Custom", [&](auto& action) { String search_engine; - if (GUI::InputBox::show(this, search_engine, "Enter URL template:", "Custom Search Engine") != GUI::InputBox::ExecOK || search_engine.is_empty()) { + if (GUI::InputBox::show(this, search_engine, "Enter URL template:", "Custom Search Engine", "https://host/search?q={}") != GUI::InputBox::ExecOK || search_engine.is_empty()) { m_disable_search_engine_action->activate(); return; }