From d35748fbfb072178c2d4985702a22e970ddddd3e Mon Sep 17 00:00:00 2001 From: Simon Kudsk <10168417+SimonKudsk@users.noreply.github.com> Date: Wed, 20 Aug 2025 21:54:37 +0200 Subject: [PATCH] Utility area animation disabled with hide interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disabled the utility area toggle animation when using hide interface - Changed the shortcut for hide interface from "⌘ ." to "⌘ ⇧ H" --- .../Documents/Controllers/CodeEditWindowController+Panels.swift | 2 +- CodeEdit/Features/WindowCommands/ViewCommands.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeEdit/Features/Documents/Controllers/CodeEditWindowController+Panels.swift b/CodeEdit/Features/Documents/Controllers/CodeEditWindowController+Panels.swift index e797f9b5bd..ea9feebb2e 100644 --- a/CodeEdit/Features/Documents/Controllers/CodeEditWindowController+Panels.swift +++ b/CodeEdit/Features/Documents/Controllers/CodeEditWindowController+Panels.swift @@ -82,7 +82,7 @@ extension CodeEditWindowController { isCollapsed: { self.workspace?.utilityAreaModel?.isCollapsed ?? true }, getPrevCollapsed: { self.prevUtilityAreaCollapsed }, setPrevCollapsed: { self.prevUtilityAreaCollapsed = $0 }, - toggle: { CommandManager.shared.executeCommand("open.drawer") } + toggle: { self.workspace?.utilityAreaModel?.togglePanel(animation: false) } ), PanelDescriptor( isCollapsed: { self.toolbarCollapsed }, diff --git a/CodeEdit/Features/WindowCommands/ViewCommands.swift b/CodeEdit/Features/WindowCommands/ViewCommands.swift index 5416771ae1..c72ccb0710 100644 --- a/CodeEdit/Features/WindowCommands/ViewCommands.swift +++ b/CodeEdit/Features/WindowCommands/ViewCommands.swift @@ -149,7 +149,7 @@ extension ViewCommands { windowController?.toggleInterface(shouldHide: !isInterfaceHidden) } .disabled(windowController == nil) - .keyboardShortcut(".", modifiers: .command) + .keyboardShortcut("H", modifiers: [.shift, .command]) } } }