Skip to content

Commit d35748f

Browse files
committed
Utility area animation disabled with hide interface
- Disabled the utility area toggle animation when using hide interface - Changed the shortcut for hide interface from "⌘ ." to "⌘ ⇧ H"
1 parent f6f2b80 commit d35748f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€ŽCodeEdit/Features/Documents/Controllers/CodeEditWindowController+Panels.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ extension CodeEditWindowController {
8282
isCollapsed: { self.workspace?.utilityAreaModel?.isCollapsed ?? true },
8383
getPrevCollapsed: { self.prevUtilityAreaCollapsed },
8484
setPrevCollapsed: { self.prevUtilityAreaCollapsed = $0 },
85-
toggle: { CommandManager.shared.executeCommand("open.drawer") }
85+
toggle: { self.workspace?.utilityAreaModel?.togglePanel(animation: false) }
8686
),
8787
PanelDescriptor(
8888
isCollapsed: { self.toolbarCollapsed },

β€ŽCodeEdit/Features/WindowCommands/ViewCommands.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ extension ViewCommands {
149149
windowController?.toggleInterface(shouldHide: !isInterfaceHidden)
150150
}
151151
.disabled(windowController == nil)
152-
.keyboardShortcut(".", modifiers: .command)
152+
.keyboardShortcut("H", modifiers: [.shift, .command])
153153
}
154154
}
155155
}

0 commit comments

Comments
Β (0)