mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: new window on existing terminal inherits properly
This commit is contained in:
@ -152,6 +152,11 @@ class TerminalController: NSWindowController, NSWindowDelegate, TerminalViewDele
|
||||
|
||||
//MARK: - First Responder
|
||||
|
||||
@IBAction func newWindow(_ sender: Any?) {
|
||||
guard let surface = focusedSurface?.surface else { return }
|
||||
ghostty.newWindow(surface: surface)
|
||||
}
|
||||
|
||||
@IBAction func newTab(_ sender: Any?) {
|
||||
guard let surface = focusedSurface?.surface else { return }
|
||||
ghostty.newTab(surface: surface)
|
||||
|
@ -94,7 +94,7 @@
|
||||
<menuItem title="New Window" id="Was-JA-tGl">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="newWindow:" target="bbz-4X-AYv" id="NnC-l5-DUY"/>
|
||||
<action selector="newWindow:" target="-1" id="pnf-fE-gHi"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="New Tab" id="uTG-Vz-hJU">
|
||||
|
Reference in New Issue
Block a user