mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Relabel all tabs and clear labels for tabs with no key equivalent
This commit is contained in:
@ -130,11 +130,18 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
||||
// otherwise the accessory view doesn't matter.
|
||||
tabListenForFrame = windows.count > 1
|
||||
|
||||
for (index, window) in windows.enumerated().prefix(9) {
|
||||
for (index, window) in windows.enumerated() {
|
||||
guard index < 9 else {
|
||||
window.keyEquivalent = ""
|
||||
continue
|
||||
}
|
||||
|
||||
let action = "goto_tab:\(index + 1)"
|
||||
|
||||
if let equiv = ghostty.config.keyEquivalent(for: action) {
|
||||
window.keyEquivalent = "\(equiv)"
|
||||
} else {
|
||||
window.keyEquivalent = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user