Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10
-
None
-
38df72713c4c4c5b4aae93ac5bcb92b86d380a8f
Description
Hover over the button in the application below, and then press "A"; the shortcut won't be activated.
import QtQuick 2.9 import QtQuick.Controls 2.0 ApplicationWindow { id: window visible: true width: 640 height: 600 onActiveFocusItemChanged: print(activeFocusItem) Shortcut { sequence: "A" onActivated: print("activated shortcut") } Button { id: button text: "Just a button" focusPolicy: Qt.NoFocus ToolTip { parent: button visible: button.hovered text: qsTr("Some helpful text") modal: false } } }