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.
Trying with this patch to unity-mir:
src/modules/ Unity/Applicati on/OSKControlle r.qml
onFocusedAppli cationIdChanged : {
print( "Focused app closed with OSK open, close OSK")
Qt.inputMetho d.hide( );
Connections {
target: ApplicationManager
if (__oskSurface != null) {
}
}
}
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.