mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: new tab while a window is focused inherits
This commit is contained in:
@ -152,6 +152,11 @@ class TerminalController: NSWindowController, NSWindowDelegate, TerminalViewDele
|
||||
|
||||
//MARK: - First Responder
|
||||
|
||||
@IBAction func newTab(_ sender: Any?) {
|
||||
guard let surface = focusedSurface?.surface else { return }
|
||||
ghostty.newTab(surface: surface)
|
||||
}
|
||||
|
||||
@IBAction func close(_ sender: Any) {
|
||||
guard let surface = focusedSurface?.surface else { return }
|
||||
ghostty.requestClose(surface: surface)
|
||||
|
@ -100,7 +100,7 @@
|
||||
<menuItem title="New Tab" id="uTG-Vz-hJU">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="newTab:" target="bbz-4X-AYv" id="cxO-CS-TJq"/>
|
||||
<action selector="newTab:" target="-1" id="KoW-K7-hw5"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem isSeparatorItem="YES" id="m54-Is-iLE"/>
|
||||
|
Reference in New Issue
Block a user