Adds default cancel keyboard shortcut

This commit is contained in:
Stuart Breckenridge 2020-07-19 08:25:26 +08:00
parent 526a98f326
commit 03c60a2979
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
1 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ struct InspectorView: View {
Spacer()
Button("Cancel", action: {
presentationMode.wrappedValue.dismiss()
})
}).keyboardShortcut(.cancelAction)
Button("Done", action: {
inspectorModel.shouldUpdate = true
}).keyboardShortcut(.defaultAction)
@ -170,7 +170,7 @@ struct InspectorView: View {
Spacer()
Button("Cancel", action: {
presentationMode.wrappedValue.dismiss()
})
}).keyboardShortcut(.cancelAction)
Button("Done", action: {
inspectorModel.shouldUpdate = true
}).keyboardShortcut(.defaultAction)
@ -221,7 +221,7 @@ struct InspectorView: View {
Spacer()
Button("Cancel", action: {
presentationMode.wrappedValue.dismiss()
})
}).keyboardShortcut(.cancelAction)
Button("Done", action: {
inspectorModel.shouldUpdate = true
}).keyboardShortcut(.defaultAction)