← Back to team overview

touch-packages team mailing list archive

[Bug 1518352] Re: Input doesn't receive activeFocus when focusing a textfield after keyboard dismissed

 

** Also affects: canonical-devices-system-image
   Importance: Undecided
       Status: New

** Changed in: canonical-devices-system-image
    Milestone: None => ww02-2016

** Changed in: canonical-devices-system-image
     Assignee: (unassigned) => Zoltan Balogh (bzoltan)

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Zoltan Balogh (bzoltan)

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => High

** Changed in: canonical-devices-system-image
   Importance: Undecided => High

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

Title:
  Input doesn't receive activeFocus when focusing a textfield after
  keyboard dismissed

Status in Canonical System Image:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  When setting focus programmatically on a TextField the input area
  doesn't receive focus correctly if the keyboard has been previously
  dismissed by the user while in that field.

  Dismissing the keyboard removes activeFocus from the input component
  inside the TextField, and this is never restored when setting focus on
  the TextField as a whole (it does get restored if the TextField is
  clicked by the user).

  Steps to reproduce:

  1) Run the following QML:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  Column {
      width: 600
      height: 800
      TextField {
          id: field

          anchors {
              left: parent.left
              right: parent.right
          }
      }
      Button {
          text: "Set Focus"
          anchors {
              left: parent.left
              right: parent.right
          }
          onClicked: {
              field.forceActiveFocus()
          }
      }
  }

  2) Tap the input area

  3) Swipe down on the keyboard to dismiss it

  4) Press "Set Focus" button

  Expected result:

  TextField should receive focus, display the input caret and show the
  keyboard

  Actual result:

  The TextField receives focus, but the input component inside it
  doesn't receive activeFocus and the input caret and keyboard aren't
  displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1518352/+subscriptions


References