mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-01 15:38:35 +00:00
core: slide terminal keybinding action
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user