Browse Source

Fix regression after forcing UI keyboard/input focus

Closes #127

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
abe6c8db6b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/CardinalUI.cpp

+ 4
- 3
src/CardinalUI.cpp 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
{


Loading…
Cancel
Save