Comment 1 for bug 1267550

Revision history for this message
Gerry Boland (gerboland) wrote :

Trying with this patch to unity-mir:

src/modules/Unity/Application/OSKController.qml
    Connections {
        target: ApplicationManager
        onFocusedApplicationIdChanged: {
            if (__oskSurface != null) {
                print("Focused app closed with OSK open, close OSK")
                Qt.inputMethod.hide();
            }
        }
    }

it prints at the correct time, but the OSK fails to close. Qt.inputMethod.hide() does not appear to function in shell. No idea why, but I do recall shell always had problems controlling OSK.

A better solution to this bug would be for when the focused app dies, the shell returns to the dash, not to the next focused app.