mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user