Browse Source

auto grab focus on empty

CPP-GTK4
yggverse 3 months ago
parent
commit
0665f3bd64
  1. 6
      src/app/browser/main/tab/page/navigation/request.cpp

6
src/app/browser/main/tab/page/navigation/request.cpp

@ -53,6 +53,12 @@ Request::Request( @@ -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;

Loading…
Cancel
Save