Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.10.1, 5.11.2
-
None
Description
Related: QTBUG-68711
import QtQuick 2.9 import QtQuick.Window 2.2 import QtQuick.Controls 1.4 Window { id: root visible: true width: 640 height: 480 title: qsTr("Hello World") Shortcut { enabled: true sequence: "Right" context: Qt.ApplicationShortcut onActivated: console.log("press received in shortcut") } GridView { id: gridview Keys.onShortcutOverride: { console.log("shortcut override") event.accepted = true } keyNavigationEnabled: true keyNavigationWraps: true onCurrentIndexChanged: console.log("key received in gridview") model: 100 delegate: Item {} } Component.onCompleted: gridview.forceActiveFocus() }
Expected after pressing right-arrow key:
qml: shortcut override
qml: key received in gridview
Actual:
qml: press received in shortcut
Key is processed correctly in gridview if shortcut is disabled, or input forwarded to through another item.