auto grab focus on empty

This commit is contained in:
yggverse 2024-09-17 05:04:27 +03:00
parent 30a1872fa5
commit 0665f3bd64

View File

@ -53,6 +53,12 @@ Request::Request(
void Request::update(
const double & PROGRESS_FRACTION
) {
// Auto grab focus on empty (currently for new tabs)
if (get_text().empty())
{
grab_focus();
}
// Update progress
progress_fraction = PROGRESS_FRACTION;