Fix regression after forcing UI keyboard/input focus

Closes #127

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-27 22:21:43 +00:00
parent b91af832e1
commit abe6c8db6b
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -714,11 +714,12 @@ protected:
setState("windowSize", sizeString);
}
void uiFocus(const bool gotFocus, CrossingMode) override
void uiFocus(const bool focus, const CrossingMode mode) override
{
if (gotFocus)
if (focus)
{
getWindow().focus();
if (mode == kCrossingNormal)
getWindow().focus();
}
else
{