mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
auto grab focus on empty
This commit is contained in:
parent
30a1872fa5
commit
0665f3bd64
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue