mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +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(
|
void Request::update(
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
) {
|
) {
|
||||||
|
// Auto grab focus on empty (currently for new tabs)
|
||||||
|
if (get_text().empty())
|
||||||
|
{
|
||||||
|
grab_focus();
|
||||||
|
}
|
||||||
|
|
||||||
// Update progress
|
// Update progress
|
||||||
progress_fraction = PROGRESS_FRACTION;
|
progress_fraction = PROGRESS_FRACTION;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue