Skip to content

Commit 3562c69

Browse files
committed
app: Fix missing keyboard shortcut in toolbar item
1 parent 0b44033 commit 3562c69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CodeApp/Views/TopBar.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ private struct ToolbarItemView: View {
158158
.frame(minWidth: 0, maxWidth: 20, minHeight: 0, maxHeight: 20)
159159
.padding()
160160
}
161+
.if(item.shortCut != nil) {
162+
$0.keyboardShortcut(item.shortCut!.key, modifiers: item.shortCut!.modifiers)
163+
}
161164
}
162-
163165
}

0 commit comments

Comments
 (0)