Commit 68fe727f authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/colorpicker: press space to open color menu

parent 1775e297
Pipeline #210985 passed with stage
in 1 minute and 38 seconds
......@@ -318,6 +318,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