QmlDesigner: Fix unintentional item reordering

Fix reordering of items in the Navigator if using shortcuts on a
SpinBox in the Property Editor.

Task-number: QDS-2738
Change-Id: Ia12d2d072c36fbb32156c9729cffd828e8747b28
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2020-09-09 15:37:14 +02:00
committed by Henning Gründl
parent 0f9010d381
commit 3afc21052f

View File

@@ -128,6 +128,11 @@ TextInput {
}
}
// Ensure that we get Up and Down key press events first
Keys.onShortcutOverride: {
event.accepted = (event.key === Qt.Key_Up || event.key === Qt.Key_Down)
}
TapHandler {
id: tapHandler
acceptedDevices: PointerDevice.Mouse