diff --git a/src/CardinalUI.cpp b/src/CardinalUI.cpp index 1c14aa3..1fa5f1c 100644 --- a/src/CardinalUI.cpp +++ b/src/CardinalUI.cpp @@ -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 {