Skip to content

Commit

Permalink
fix: Add keyboard shortcut for toggling the grid (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Jan 8, 2023
1 parent 51ca5f5 commit 3e281bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Symbolic/Commands/ViewCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct ViewCommands: Commands {
if let sceneModel = sceneModel {
CommandGroup(before: .sidebar) {
Toggle("Show Grid", isOn: Binding(get: { sceneModel.showGrid }, set: { sceneModel.showGrid = $0 }))
.keyboardShortcut("G")
Divider()
}
}
Expand Down

0 comments on commit 3e281bb

Please sign in to comment.