ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #05512
[Bug 1537782] [NEW] Modifier ignored when pressing a key if TextInput has active focus
You have been subscribed to a public bug:
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
}
}
}
** Affects: canonical-devices-system-image
Importance: High
Assignee: Michał Sawicz (saviq)
Status: Triaged
** Affects: qtdeclarative-opensource-src (Ubuntu)
Importance: Undecided
Assignee: Michael Terry (mterry)
Status: In Progress
** Tags: patch
--
Modifier ignored when pressing a key if TextInput has active focus
https://bugs.launchpad.net/bugs/1537782
You received this bug notification because you are a member of Ubuntu SDK bug tracking, which is subscribed to qtdeclarative-opensource-src in Ubuntu.