Shortcut: Only binding to one of multiple key
-
Hello, I have this code in QML:
Shortcut { enabled: map.zoomLevel < map.maximumZoomLevel sequence: StandardKey.ZoomIn onActivated: map.zoomLevel = Math.round(map.zoomLevel + 1) } Shortcut { enabled: map.zoomLevel > map.minimumZoomLevel sequence: StandardKey.ZoomOut onActivated: map.zoomLevel = Math.round(map.zoomLevel - 1) }When I compile it with Qt 9.10.2, I receive this runtime warning:
21:33:46.478 [W] default: qrc:/qt/qml/abracaComponents/qml/tii/TIIMap.qml:119:9: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 17. Use 'sequences: [ <key> ]' to bind to all of them. 21:33:46.478 [W] default: qrc:/qt/qml/abracaComponents/qml/tii/TIIMap.qml:114:9: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 16. Use 'sequences: [ <key> ]' to bind to all of them.I do non understand what is wrong and how to fix it because each Shortcut is for different action.