onEventPasted

fires when the user presses the 'CTRL+V' keyboard command

void onEventPasted(boolean isCopy,object pasted_ev,object original_ev);
isCopybooleanindicates whether the event was copied or cut before pasting. The true value 'says' that the event was copied
pasted_evobjectthe object of the new data item (the event that is created after pasting)
original_evobjectthe object of the original data item (the event that was copied/cut)

Example

scheduler.attachEvent("onEventPasted", function(isCopy, pasted_ev, original_ev) {
    //any custom logic here
});

Related samples

Details

The event requires the key_nav extension to be enabled.

See also
Back to top