OSK is removed by the Qt's TextInput or TextEdit components losing focus. Those lose focus also when the component is deleted or made invisible. As OSK and the UI are running in separate threads, it is obvious that you will receive the signal after the page has been closed.
** Changed in: ubuntu-ui-toolkit (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1492769 Title: OSK should be closed before removing page from PageStack To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-keyboard/+bug/1492769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs