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
commit
6a9b8b70cc
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue