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
|
//MARK: - First Responder
|
||||||
|
|
||||||
|
@IBAction func newTab(_ sender: Any?) {
|
||||||
|
guard let surface = focusedSurface?.surface else { return }
|
||||||
|
ghostty.newTab(surface: surface)
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func close(_ sender: Any) {
|
@IBAction func close(_ sender: Any) {
|
||||||
guard let surface = focusedSurface?.surface else { return }
|
guard let surface = focusedSurface?.surface else { return }
|
||||||
ghostty.requestClose(surface: surface)
|
ghostty.requestClose(surface: surface)
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
<menuItem title="New Tab" id="uTG-Vz-hJU">
|
<menuItem title="New Tab" id="uTG-Vz-hJU">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="newTab:" target="bbz-4X-AYv" id="cxO-CS-TJq"/>
|
<action selector="newTab:" target="-1" id="KoW-K7-hw5"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem isSeparatorItem="YES" id="m54-Is-iLE"/>
|
<menuItem isSeparatorItem="YES" id="m54-Is-iLE"/>
|
||||||
|
Reference in New Issue
Block a user