core: slide terminal keybinding action

This commit is contained in:
Mitchell Hashimoto
2024-09-22 21:57:17 -07:00
parent d18e1c879b
commit cadb960ef9
5 changed files with 53 additions and 6 deletions

View File

@@ -85,6 +85,15 @@ class SlideTerminalController: NSWindowController, NSWindowDelegate, TerminalVie
// MARK: Slide Methods
func slideToggle() {
guard let window = self.window else { return }
if (window.alphaValue > 0) {
slideOut()
} else {
slideIn()
}
}
func slideIn() {
guard let window = self.window else { return }
slideWindowIn(window: window, from: position)