mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-06 08:24:14 +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(
|
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…
x
Reference in New Issue
Block a user