Merge remote-tracking branch 'upstream/main' into Aristo3

This commit is contained in:
daboe01
2026-03-03 18:20:36 +01:00
+11 -2
View File
@@ -2851,7 +2851,12 @@ var _CPCopyPlaceholder = '-';
}
var nativeString = nativeClipboard.getData('text/plain');
[currentFirstResponder _pasteString:nativeString || [pasteboard stringForType:CPStringPboardType] || ''];
// Use setTimeout to prevent flickering
setTimeout(function()
{
[currentFirstResponder _pasteString:nativeString || [pasteboard stringForType:CPStringPboardType] || ''];
}, 20);
};
// COPY handler
@@ -2894,7 +2899,11 @@ var _CPCopyPlaceholder = '-';
nativeClipboard.setData('text/rtf', rtfForPasting);
// Then, perform the delete part of the cut operation in the text view
[currentFirstResponder deleteBackward:self];
// Use setTimeout to prevent flickering
setTimeout(function()
{
[currentFirstResponder deleteBackward:self];
}, 20);
};
#endif
}