touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #131155
[Bug 1537782] [NEW] Modifier ignored when pressing a key if TextInput has active focus
Public bug reported:
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: Undecided
Status: New
** Affects: qtubuntu (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtubuntu 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:
New
Status in qtubuntu package in Ubuntu:
Confirmed
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
Follow ups
-
[Bug 1537782] Re: Need to use (Q)Shortcuts instead of Keys.onPressed for shortcuts
From: Olivier Tilloy, 2016-02-04
-
[Bug 1537782] Re: Need to use (Q)Shortcuts instead of Keys.onPressed for shortcuts
From: Pat McGowan, 2016-02-04
-
[Bug 1537782] Re: Need to use (Q)Shortcuts instead of Keys.onPressed for shortcuts
From: Olivier Tilloy, 2016-01-28
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michał Sawicz, 2016-01-28
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michał Sawicz, 2016-01-28
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michael Terry, 2016-01-27
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Albert Astals Cid, 2016-01-27
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michael Terry, 2016-01-26
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Ubuntu Foundations Team Bug Bot, 2016-01-26
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michael Terry, 2016-01-26
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michael Terry, 2016-01-26
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michael Terry, 2016-01-26
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michael Terry, 2016-01-26
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Michał Sawicz, 2016-01-25
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Víctor R . Ruiz, 2016-01-25
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Olivier Tilloy, 2016-01-25
-
[Bug 1537782] Re: Modifier ignored when pressing a key if TextInput has active focus
From: Víctor R . Ruiz, 2016-01-25