Skip to main content

Home > blockly > clipboard > setLastCopiedLocation

clipboard.setLastCopiedLocation() function

Sets the location that was last copied from. You should call this method if you implement custom copy behavior, so that other callers are working with the correct data. This method is called automatically if you use the built-in copy method.

Signature:

export declare function setLastCopiedLocation(location: Coordinate): void;

Parameters

ParameterTypeDescription
locationCoordinatelast saved location, which can be used to paste at.

Returns:

void