Commit 665054c7 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/colorpicker: press space to open color menu


(cherry picked from commit 68fe727f)
parent 174a478f
Pipeline #211623 canceled with stage
in 27 seconds
......@@ -319,6 +319,16 @@ Item {
acceptedButtons: Qt.LeftButton | Qt.RightButton
hoverEnabled: true
Keys.onPressed: {
switch (event.key) {
case Qt.Key_Space:
case Qt.Key_Enter:
case Qt.Key_Return:
case Qt.Key_Select:
delegateMouse.clicked(null);
break;
}
}
Accessible.name: colorLabel.text
Accessible.role: Accessible.ButtonMenu
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment