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)
pull/8504/head
Tim Culverhouse 2025-09-03 09:32:34 -05:00
parent 291d4ed423
commit 1dee9e7cb2
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -5525,10 +5525,11 @@ pub const Keybinds = struct {
else else
.{ .ctrl = true, .shift = true }; .{ .ctrl = true, .shift = true };
try self.set.put( try self.set.putFlags(
alloc, alloc,
.{ .key = .{ .unicode = 'c' }, .mods = mods }, .{ .key = .{ .unicode = 'c' }, .mods = mods },
.{ .copy_to_clipboard = {} }, .{ .copy_to_clipboard = {} },
.{ .performable = true },
); );
try self.set.put( try self.set.put(
alloc, alloc,