← Back to team overview

touch-packages team mailing list archive

[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus

 

Mike, i'd suggest you upload the patch to https://codereview.qt-
project.org/#/q/status:open,n,z and add some reviewers, patches in the
bug tracker have an history of not being seen.

Ping me if you need help with Qt's gerrit, it's not the most helpful of
the tools to use for the first time.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtdeclarative-opensource-
src in Ubuntu.
https://bugs.launchpad.net/bugs/1537782

Title:
  Modifier ignored when pressing a key if TextInput has active focus

Status in Canonical System Image:
  Triaged
Status in qtdeclarative-opensource-src package in Ubuntu:
  In Progress

Bug description:
  On a phone with a bluetooth keyboard connected, with the following
  standalone example, if I press Ctrl+T I expect the message "Ctrl+T
  pressed" to be printed on the console, but instead the Ctrl key is
  ignored and "t" is inserted in the text field.

  import QtQuick 2.4
  Item {
    TextInput {
      anchors.centerIn: parent
      width: parent.width - 20
      height: 100
      Component.onCompleted: forceActiveFocus()
    }
    Keys.onPressed: {
      console.log("key pressed:", event.key, event.modifiers)
      if (event.key == Qt.Key_T && event.modifiers == Qt.ControlModifier) {
        console.log("Ctrl+T pressed")
        event.accepted = true
      }
    }
  }

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


References