Skip to content

Commit

Permalink
Remove old shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
FastestMolasses committed Jul 24, 2023
1 parent 989ecb2 commit 85e31a7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions CodeEdit/Features/Tabs/Views/TabBarItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,6 @@ struct TabBarItemView: View {
.padding(.horizontal, tabBarStyle == .native ? 28 : 23)
.overlay {
ZStack {
// Switch Tab Shortcut:
// Using an invisible button to contain the keyboard shortcut is simply
// because the keyboard shortcut has an unexpected bug when working with
// custom buttonStyle. This is an workaround and it works as expected.
if index < 10 {
Button(
action: switchAction,
label: { EmptyView() }
)
.frame(width: 0, height: 0)
.keyboardShortcut(
KeyEquivalent(Character(String(index))),
modifiers: [.command]
)
.opacity(0)
.allowsHitTesting(false)
}
// Close Button
TabBarItemCloseButton(
isActive: isActive,
Expand Down

0 comments on commit 85e31a7

Please sign in to comment.