onBeforeEventPasted

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

boolean onBeforeEventPasted(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)
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

scheduler.attachEvent("onBeforeEventPasted", function(isCopy,pasted_ev,original_ev) {
    // here you can modify `pastedEvent`
    return true; 
});

Details

The 'keyboard navigation' extension should be enabled.

See also
Back to top