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

Bug #1200371 reported by Bill Filler
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Committed
Critical
Olga Kemmet
ubuntu-ui-toolkit (Ubuntu)
Confirmed
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)
Revision history for this message
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

Revision history for this message
Florian Boucault (fboucault) wrote :

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

Zsombor Egri (zsombi)
tags: added: text-input
Changed in ubuntu-ux:
assignee: nobody → Giorgio Venturi (giorgio-venturi)
status: New → Triaged
importance: Undecided → High
Revision history for this message
Giorgio Venturi (giorgio-venturi-deactivatedaccount) wrote :

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)
no longer affects: ubuntu-ui-toolkit (Ubuntu)
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → High
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
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.

Cris Dywan (kalikiana)
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.