← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1492769] [NEW] OSK should be closed before removing page from PageStack

 

Public bug reported:

Hello, I think I have found a bug from PageStack component, see

https://bugs.launchpad.net/my-webapp-group/+bug/1490493

I have produced a small app where the bug can be easily reproduced

https://code.launchpad.net/~matti-rintanikkola-d/+junk/radial-buttom-
edge-bug

Reproduce fault: 
1) Open "Page2" page from Root page by clicking radial action icon "Home"
2) click website title/url field in order to open keyboard view
3) without closing the keyboard turn back to the main view
4) the main view will be opened without radial actions edge button

Analysis: The visibility of the main view radial edge button is toggled
by using the connection

    Connections {
        target: Qt.inputMethod
        onVisibleChanged: nav.visible = !nav.visible
    }

If you do not close the keyboard when turning back to the Root page from
"Page2" page the main view became visible before the signal
onVisibleChanged is fired and when it will be fired the radial edge
button becomes invisible.

Solution?: Before removing the page from pageStack it should be ensured
that the keyboard is not visible. Maybe this could be achieved simply by
adding a function call Qt.inputMethod.hide() before removing the page
from pageStack.

Regards,

Matti

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1492769

Title:
  OSK should be closed before removing page from PageStack

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Hello, I think I have found a bug from PageStack component, see

  https://bugs.launchpad.net/my-webapp-group/+bug/1490493

  I have produced a small app where the bug can be easily reproduced

  https://code.launchpad.net/~matti-rintanikkola-d/+junk/radial-buttom-
  edge-bug

  Reproduce fault: 
  1) Open "Page2" page from Root page by clicking radial action icon "Home"
  2) click website title/url field in order to open keyboard view
  3) without closing the keyboard turn back to the main view
  4) the main view will be opened without radial actions edge button

  Analysis: The visibility of the main view radial edge button is
  toggled by using the connection

      Connections {
          target: Qt.inputMethod
          onVisibleChanged: nav.visible = !nav.visible
      }

  If you do not close the keyboard when turning back to the Root page
  from "Page2" page the main view became visible before the signal
  onVisibleChanged is fired and when it will be fired the radial edge
  button becomes invisible.

  Solution?: Before removing the page from pageStack it should be
  ensured that the keyboard is not visible. Maybe this could be achieved
  simply by adding a function call Qt.inputMethod.hide() before removing
  the page from pageStack.

  Regards,

  Matti

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1492769/+subscriptions


Follow ups