Skip to content

Commit 590db56

Browse files
committed
macOS: move KeyStateIndicator on top of exit bar
1 parent 79a470d commit 590db56

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

macos/Sources/Ghostty/Surface View/SurfaceView.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,17 @@ extension Ghostty {
124124
surfaceView.toggleReadonly(nil)
125125
}
126126
}
127-
128-
// Show key state indicator for active key tables and/or pending key sequences
129-
KeyStateIndicator(
130-
keyTables: surfaceView.keyTables,
131-
keySequence: surfaceView.keySequence
132-
)
133127
#endif
134128

135129
VStack(spacing: 0) {
130+
#if canImport(AppKit)
131+
// Show key state indicator for active key tables and/or pending key sequences
132+
KeyStateIndicator(
133+
keyTables: surfaceView.keyTables,
134+
keySequence: surfaceView.keySequence
135+
)
136+
.zIndex(1)
137+
#endif
136138
// If we have a URL from hovering a link, we show that.
137139
if let url = surfaceView.hoverUrl {
138140
URLHoverBanner(url: url)

0 commit comments

Comments
 (0)