Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
6.5.4, 6.6.1, 6.7.0 Beta2, 6.8
Description
The two-finger pinch (&zoom) gesture triggers the Key_Control event on Windows trackpads.
Example:
import QtQuick import QtQuick.Controls.Material import QtQuick.Layouts ApplicationWindow { id: window width: 640 height: 480 visible: true title: qsTr("Test") Page { id: page anchors.fill: parent focus: true MouseArea { onClicked: page.forceActiveFocus() } Keys.onPressed: function(event) { console.log("Key pressed: " + event.key); if (event.key === Qt.Key_Control) { console.log("CTRL pressed!"); } } } }