[SDK] auto-scroll input fields when OSK visibility changes

Bug #1200371 reported by Bill Filler on 2013-07-11
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu UX
Critical
Olga Kemmet
ubuntu-ui-toolkit (Ubuntu)
High
Zsombor Egri

Bug Description

Currently when you select in an input field, it causes the osk to be displayed. If the field is located beneath the osk it is obscured. Currently many of the apps have to write special code to handle the osk visiblilty and handle scrolling of the field. This should be done automatically by the sdk if the app opt's in somehow.

Here is a pointer to code in lp:phone-app that makes the input filed for sending text messages scroll based on osk visibility. Same is repeated in webbrowser-app:

http://bazaar.launchpad.net/~phablet-team/phone-app/trunk/view/head:/src/qml/Widgets/KeyboardRectangle.qml
http://bazaar.launchpad.net/~phablet-team/phone-app/trunk/view/head:/src/qml/DetailViewCommunication/CommunicationView.qml#L235

You basically anchor the KeyboardRectangle item to the bottom of your view, and then the contents you want to scroll you anchor to the top of the KeyboardRectangle. This KeyboardRectangle is a normal item that has the size of the virtual keyboard.
When the keyboard is visible it has the height of the keyboard, when the keyboard is hidden, it has a height of 0

UX Solution
The solution identified by Florian above is 100% correct

Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → Critical
importance: Critical → High
Changed in ubuntu-ui-toolkit:
assignee: nobody → Florian Boucault (fboucault)
Nekhelesh Ramananthan (nik90) wrote :

I think renato is also working on this bug. You can see his MP at https://code.launchpad.net/~renatofilho/ubuntu-ui-toolkit/fix-keyboard-visibility/+merge/174503

Florian Boucault (fboucault) wrote :

Actually what Renato did does not fix this. It will certainly help though.

Zsombor Egri (zsombi) on 2014-02-10
tags: added: text-input
Changed in ubuntu-ux:
assignee: nobody → Giorgio Venturi (giorgio-venturi)
status: New → Triaged
importance: Undecided → High

Yes, I agree, this is an important bug and it should be fixed asap

summary: - auto-scroll input fields when OSK visibility changes
+ [SDK] auto-scroll input fields when OSK visibility changes
Changed in ubuntu-ux:
importance: High → Critical
Changed in ubuntu-ui-toolkit:
milestone: none → 11.07
tags: added: copy-paste
Changed in ubuntu-ui-toolkit:
milestone: 11.07 → none
assignee: Florian Boucault (fboucault) → nobody
tags: removed: copy-paste
description: updated
Changed in ubuntu-ux:
status: Triaged → Fix Committed
Zoltan Balogh (bzoltan) on 2014-11-17
no longer affects: ubuntu-ui-toolkit (Ubuntu)
Zoltan Balogh (bzoltan) on 2014-11-19
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
Zoltan Balogh (bzoltan) on 2014-11-24
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → High
status: New → Confirmed
Zoltan Balogh (bzoltan) on 2014-11-24
no longer affects: ubuntu-ui-toolkit
Zsombor Egri (zsombi) wrote :

Similar situation is valid also when a component focused using TAB/Shift+TAB key falls outside of the visible area. As all focusable components are derived from StyledItem, I feel we can implant the "scrolling" functionality into that component.

tags: added: convergence keyboard osk
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers