File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,14 @@ Dialog {
73
73
contentHeight: scrollView .implicitHeight
74
74
75
75
Shortcut {
76
- sequence : " Ctrl+Enter"
77
- enabled: parent .visible
76
+ sequences : [ " Ctrl+Enter" , " Ctrl+Return " ]
77
+ enabled: dialog .visible
78
78
context: Qt .ApplicationShortcut
79
- onActivated: if (plantingForm .accepted ) accept ();
79
+ onActivated: {
80
+ if (plantingForm .accepted ) accept ();
81
+ }
80
82
}
81
83
82
-
83
84
header: PlantingFormHeader {
84
85
visible: mode === " add"
85
86
id: plantingFormHeader
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ Flickable {
177
177
var value = widgetField[i][2 ]
178
178
179
179
if ((widget instanceof MyTextField && widget .manuallyModified )
180
+ || (widget instanceof MyComboBox && widget .manuallyModified )
180
181
|| (widget instanceof CheckBox && widget .manuallyModified )
181
182
|| (widget instanceof DatePicker && widget .modified )) {
182
183
map[name] = value;
Original file line number Diff line number Diff line change @@ -68,6 +68,15 @@ Dialog {
68
68
Material .background : Material .color (Material .Grey , Material .Shade100 )
69
69
height: sowPlantTask ? taskForm .implicitHeight + Units .smallSpacing : parent .height - 2 * Units .smallSpacing
70
70
71
+ Shortcut {
72
+ sequences: [" Ctrl+Enter" , " Ctrl+Return" ]
73
+ enabled: dialog .visible
74
+ context: Qt .ApplicationShortcut
75
+ onActivated: {
76
+ if (taskForm .accepted ) accept ();
77
+ }
78
+ }
79
+
71
80
header: TaskDialogHeader {
72
81
id: taskDialogHeader
73
82
width: parent .width
You can’t perform that action at this time.
0 commit comments