Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1970,14 +1970,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1969 unmodified lines | |||
| 1970 | return renderable->textSize(text); | 1970 | return renderable->textSize(text); |
| 1971 | } | 1971 | } |
| 1972 | } | 1972 | } |
| 1973 | }); | ||
| 1974 | |||
| 1975 | // Keyboard focus handling for Web overlays. | ||
| 1976 | auto overlays = &(qApp->getOverlays()); | ||
| 1977 | connect(overlays, &Overlays::overlayDeleted, [this](const OverlayID& overlayID) { | ||
| 1978 | if (overlayID == _keyboardFocusedOverlay.get()) { | ||
| 1979 | setKeyboardFocusOverlay(UNKNOWN_OVERLAY_ID); | ||
| 1980 | } | ||
| 1981 | return QSizeF(0.0f, 0.0f); | 1973 | return QSizeF(0.0f, 0.0f); |
| 1982 | }); | 1974 | }); |
| 1983 | 1975 | ||