Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.1
-
None
-
tested on Windows 11 with Chrome 124.0.6367.201 and Edge 124.0.2478.67, touchscreen
-
-
c844a7a5429e74d7cefb9774f288dbaa76fc2bbb
Description
Items Keys event are not received until Tab key is pressed 2 times.
Then Keys events are received.
Here is a simple QML code to reproduce
// code placeholder import QtQuick import QtQuick.Window Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle { id: redRect color: focus ? "green": "red" width: 640 height: 480 focus: true Text { id: text text: '' height: 30 } Keys.onPressed: (event) => { text.text = 'Key pressed'; console.log('key pressed',event.key,event.nativeScanCode); } Keys.onReleased: (event) => { text.text = 'Key releasecd'; console.log('key released',event.key,event.nativeScanCode); } } }