From 1dee9e7cb255215f6a545f3ff6d7ad88baa059ae Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Wed, 3 Sep 2025 09:32:34 -0500 Subject: [PATCH] config: make default copy_to_clipboard binds performable Make the default keybind for copy_to_clipboard performable. This allows TUIs to receive events when keybinds aren't used, for example cmd+c on macos for copy, or ctrl+shift+c elsewhere. Disclosure: This commit was made with the assistance of AI (ampcode.com) --- src/config/Config.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index d324059b3..1ec0bafce 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -5525,10 +5525,11 @@ pub const Keybinds = struct { else .{ .ctrl = true, .shift = true }; - try self.set.put( + try self.set.putFlags( alloc, .{ .key = .{ .unicode = 'c' }, .mods = mods }, .{ .copy_to_clipboard = {} }, + .{ .performable = true }, ); try self.set.put( alloc,