forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
0f9010d381
commit
3afc21052f
@@ -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 {
|
TapHandler {
|
||||||
id: tapHandler
|
id: tapHandler
|
||||||
acceptedDevices: PointerDevice.Mouse
|
acceptedDevices: PointerDevice.Mouse
|
||||||
|
|||||||
Reference in New Issue
Block a user