mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
auto grab focus on empty
This commit is contained in:
parent
30a1872fa5
commit
0665f3bd64
@ -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…
x
Reference in New Issue
Block a user