@@ -48,7 +48,7 @@ ActionItem {
48 action: Action {
48 action: Action {
49 text: menuData.label.replace("_", "&")
49 text: menuData.label.replace("_", "&")
50 checkable: menuData.isCheck || menuData.isRadio
50 checkable: menuData.isCheck || menuData.isRadio
51− // TODO - exclusive groups.
51+ checked: menuData.isToggled
@@ -59,14 +59,16 @@ ActionItem {
60 Keys.onRightPressed: {
60 Keys.onRightPressed: {
61 if (hasSubmenu) {
61 if (hasSubmenu) {
62− root.trigger(action && action.checkable ? !action.checked : undefined);
62+ root.trigger();
64 event.accepted = false;
64 event.accepted = false;
67+ Keys.onReturnPressed: {
67 Keys.onEnterPressed: {
70 Keys.onEnterPressed: {
68− root.trigger(action && action.checkable ? !action.checked : undefined);
71+ root.trigger();
69− event.accepted = true;
72 RowLayout {
74 RowLayout {
@@ -78,12 +80,17 @@ ActionItem {
78 anchors.rightMargin: units.gu(1)
80 anchors.rightMargin: units.gu(1)
79 anchors.verticalCenter: parent.verticalCenter
81 anchors.verticalCenter: parent.verticalCenter
83− width: units.gu(1.5)
84+ Layout.minimumWidth: units.gu(1.5)
84− height: units.gu(1.5)
85+ Layout.minimumHeight: units.gu(1.5)
90+ height: units.gu(1.5)
86− name: _checked ? "tick" : ""
92+ name: "tick"