Fix copy paste

This commit is contained in:
luboslenco
2025-08-03 22:42:44 +02:00
parent 80b5001a99
commit 20696247fd
4 changed files with 5 additions and 27 deletions
+1 -3
View File
@@ -179,9 +179,7 @@ static bool cmd = false;
if (ch == 'c' && [theEvent modifierFlags] & NSCommandKeyMask) {
char *text = iron_internal_copy_callback();
if (text != NULL) {
NSPasteboard *board = [NSPasteboard generalPasteboard];
[board clearContents];
[board setString:[NSString stringWithUTF8String:text] forType:NSStringPboardType];
iron_copy_to_clipboard(text);
}
}
if (ch == 'v' && [theEvent modifierFlags] & NSCommandKeyMask) {