start input, its broken but we're getting there

This commit is contained in:
Mitchell Hashimoto
2023-02-17 22:12:03 -08:00
parent 074664398a
commit 573b163636
6 changed files with 199 additions and 5 deletions

View File

@@ -96,6 +96,13 @@ class TerminalSurfaceView_Real: NSView, ObservableObject {
override func keyDown(with event: NSEvent) {
print("Key down: \(event)")
if let surface = self.surface {
if (event.keyCode == 36) {
ghostty_surface_key(surface, press, enter, 0)
}
}
self.interpretKeyEvents([event])
}