diff --git a/macos/Sources/Ghostty/SurfaceView.swift b/macos/Sources/Ghostty/SurfaceView.swift index 517fcf9b7..178885976 100644 --- a/macos/Sources/Ghostty/SurfaceView.swift +++ b/macos/Sources/Ghostty/SurfaceView.swift @@ -367,7 +367,7 @@ extension Ghostty { private func keyAction(_ action: ghostty_input_action_e, event: NSEvent) { guard let surface = self.surface else { return } let mods = Self.translateFlags(event.modifierFlags) - ghostty_surface_key2(surface, action, UInt32(event.keyCode), mods) + ghostty_surface_key(surface, action, UInt32(event.keyCode), mods) } // MARK: Menu Handlers diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index 4892dd248..b800f2690 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -387,7 +387,8 @@ pub const Surface = struct { keycode: u32, mods: input.Mods, ) !void { - if (action != .press) return; + // We don't handle release events because we don't use them yet. + if (action != .press and action != .repeat) return; // Translate our key using the keymap for our localized keyboard layout. var buf: [128]u8 = undefined;