Skip to content

Commit

Permalink
app: Fix missing keyboard shortcut in toolbar item
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Dec 7, 2022
1 parent 0b44033 commit 3562c69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CodeApp/Views/TopBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ private struct ToolbarItemView: View {
.frame(minWidth: 0, maxWidth: 20, minHeight: 0, maxHeight: 20)
.padding()
}
.if(item.shortCut != nil) {
$0.keyboardShortcut(item.shortCut!.key, modifiers: item.shortCut!.modifiers)
}
}

}

0 comments on commit 3562c69

Please sign in to comment.