From 3afc21052f29f1ee2901c9fc3596119c9348d0b4 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Wed, 9 Sep 2020 15:37:14 +0200 Subject: 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 --- .../imports/StudioControls/RealSpinBoxInput.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml index 72a713c282..edeeaf9fd2 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioControls/RealSpinBoxInput.qml @@ -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 -- cgit v1.2.3