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)
This commit is contained in:
Tim Culverhouse
2025-09-03 09:32:34 -05:00
parent 291d4ed423
commit 1dee9e7cb2

View File

@@ -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,