Adds default cancel keyboard shortcut
This commit is contained in:
parent
526a98f326
commit
03c60a2979
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user