config: make default copy_to_clipboard binds performable (#8504)

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/8506/head
Mitchell Hashimoto 2025-09-03 07:58:47 -07:00 committed by GitHub
commit 6a9b8b70cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

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,